[pbs-devel] [PATCH proxmox 3/3] build: add autopkgtest target

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Jan 14 14:39:55 CET 2021


which runs the autopkgtests on the built packages.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---

Notes:
    they take a while, but test all the features individually + those only required by examples

 Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 963c507..b0ab80a 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,9 @@ deb: $(foreach c,$(CRATES), $c-deb)
 	echo $(foreach c,$(CRATES), $c-deb)
 	lintian build/*.deb
 
+.PHONY: autopkgtest
+autopkgtest: $(foreach c,$(CRATES), $c-autopkgtest)
+
 .PHONY: dinstall
 dinstall:
 	$(MAKE) clean
@@ -21,6 +24,10 @@ dinstall:
 	./build.sh $*
 	touch $@
 
+%-autopkgtest:
+	autopkgtest build/$* build/*.deb -- null
+	touch $@
+
 .PHONY: check
 check:
 	cargo test
@@ -44,7 +51,7 @@ doc:
 .PHONY: clean
 clean:
 	cargo clean
-	rm -rf build *-deb
+	rm -rf build *-deb *-autopkgtest
 
 .PHONY: update
 update:
-- 
2.20.1






More information about the pbs-devel mailing list