Bug#416450: [PROPOSAL] New option in DEB_BUILD_OPTIONS to avoid running test-suites
I'd like to propose to formalize a new option («nocheck») in
DEB_BUILD_OPTIONS to make the build skip running any test-suites.
This helps for example when doing iterations of patching, building
and testing, until you want to do the final build.
There are already packages using either nocheck or notest, I chose
nocheck because it matches autotools conventions, but I don't really
care on which one we settle down, the important thing is to use one
consistently in the packages.
Attached the patch against latest policy document (it might need
rewording by a native speaker).
diff -Naur debian-policy-184.108.40.206.orig/policy.sgml debian-policy-220.127.116.11/policy.sgml
--- debian-policy-18.104.22.168.orig/policy.sgml 2006-10-03 01:36:50.000000000 +0300
+++ debian-policy-22.214.171.124/policy.sgml 2007-03-28 04:39:46.000000000 +0300
@@ -6458,6 +6458,11 @@
not be stripped from the binary during installation,
so that debugging information may be included in the package.
+ This string means that any build-time test-suites should
+ not be run.
@@ -6482,6 +6487,15 @@
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+CHECKS := check
+install: build $(CHECKS)