瀏覽代碼

Add support for nocheck DEB_BUILD_OPTIONS in debian/rules

So that the dpkg test suite can be skept if desired.
Guillem Jover 18 年之前
父節點
當前提交
f8906919e1
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 2 0
      debian/changelog
  2. 2 0
      debian/rules

+ 2 - 0
debian/changelog

@@ -32,6 +32,8 @@ dpkg (1.14.17) UNRELEASED; urgency=low
   * Few file descriptor cleanup and error handling fixes.
   * Few file descriptor cleanup and error handling fixes.
     Thanks to Ian Jackson. Closes: #443338
     Thanks to Ian Jackson. Closes: #443338
   * Move test suite invokation to a new check target in debian/rules.
   * Move test suite invokation to a new check target in debian/rules.
+  * Add support for nocheck DEB_BUILD_OPTIONS in debian/rules, so that the
+    dpkg test suite can be skept if desired.
 
 
   [ Raphael Hertzog ]
   [ Raphael Hertzog ]
   * Add a warning displayed by dpkg-genchanges if the current version is
   * Add a warning displayed by dpkg-genchanges if the current version is

+ 2 - 0
debian/rules

@@ -66,7 +66,9 @@ build: build-tree/config.status
 check: build
 check: build
 	dh_testdir
 	dh_testdir
 
 
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 	cd build-tree && $(MAKE) check
 	cd build-tree && $(MAKE) check
+endif
 
 
 # Install the package underneath debian/tmp
 # Install the package underneath debian/tmp
 install: check
 install: check