[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#416450: [PROPOSAL] New option in DEB_BUILD_OPTIONS to avoid running test-suites

Package: debian-policy
Severity: wishlist

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- debian-policy-
--- debian-policy-	2006-10-03 01:36:50.000000000 +0300
+++ debian-policy-	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.
+	    <tag>nocheck</tag>
+	    <item>
+		This string means that any build-time test-suites should
+		not be run.
+	    </item>
@@ -6482,6 +6487,15 @@
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+CHECKS := check
+check: build
+	...
+install: build $(CHECKS)
+	...

Reply to: