[Buildd-tools-devel] [PATCH 04/22] Run check before install when building packages

Jan-Marek Glogowski glogow at fbihome.de
Thu Mar 26 21:13:42 UTC 2009


---
 debian/rules |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 3bbe47a..e039bbe 100755
--- a/debian/rules
+++ b/debian/rules
@@ -63,7 +63,13 @@ endif
 
 	dh_clean
 
-install: build
+check: build
+	dh_testdir
+	dh_testroot
+	cd debian/build; \
+	$(MAKE) check
+
+install: check
 	dh_testdir
 	dh_testroot
 	dh_prep
@@ -126,4 +132,4 @@ binary-arch: build install
 	dh_builddeb -a
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+.PHONY: build check clean binary-indep binary-arch binary install
-- 
1.6.2.1




More information about the Buildd-tools-devel mailing list