Przeglądaj źródła

Move test suite invokation to a new check target in debian/rules

Guillem Jover 18 lat temu
rodzic
commit
14ad2be159
2 zmienionych plików z 8 dodań i 2 usunięć
  1. 1 0
      debian/changelog
  2. 7 2
      debian/rules

+ 1 - 0
debian/changelog

@@ -31,6 +31,7 @@ dpkg (1.14.17) UNRELEASED; urgency=low
     Thanks to Ian Jackson. Closes: #386210
   * Few file descriptor cleanup and error handling fixes.
     Thanks to Ian Jackson. Closes: #443338
+  * Move test suite invokation to a new check target in debian/rules.
 
   [ Raphael Hertzog ]
   * Add a warning displayed by dpkg-genchanges if the current version is

+ 7 - 2
debian/rules

@@ -61,10 +61,15 @@ build: build-tree/config.status
 	dh_testdir
 
 	cd build-tree && $(MAKE)
+
+# Run the test suites
+check: build
+	dh_testdir
+
 	cd build-tree && $(MAKE) check
 
 # Install the package underneath debian/tmp
-install: build
+install: check
 	dh_testdir
 	dh_testroot
 	dh_clean -k
@@ -133,4 +138,4 @@ clean:
 	dh_clean
 
 
-.PHONY: build install binary-arch binary-indep binary clean
+.PHONY: build check install binary-arch binary-indep binary clean