From: Dietmar Maurer Date: Tue, 13 May 2014 12:18:08 +0000 (+0200) Subject: add Makefile targets for regression tests X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=ebb20753d78dce216833f22b019faa1c25149776 add Makefile targets for regression tests Always run tests before assembling a Debian package. --- diff --git a/Makefile b/Makefile index 0f6d973..e20e0b1 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ dinstall: deb .PHONY: deb -deb ${DEB}: +deb ${DEB}: check rm -rf build rsync -a src/ build rsync -a debian/ build/debian @@ -35,9 +35,14 @@ deb ${DEB}: cd build; dpkg-buildpackage -rfakeroot -b -us -uc lintian ${DEB} +.PHONY: check +check: + make -C test check + .PHONY: clean clean: make -C src clean + make -C test clean rm -rf *~ debian/*~ example/*~ *.deb *.changes build ${PACKAGE}-*.tar.gz .PHONY: distclean diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 0000000..fea9c21 --- /dev/null +++ b/test/Makefile @@ -0,0 +1,17 @@ + +all: + +.PHONY: check +check: + ./fwtester.pl + +.PHONY: install +install: check + +.PHONY: clean +clean: + rm -f *~ test-*/*~ + +.PHONY: distclean +distclean: clean +