]> git.saurik.com Git - apt.git/commitdiff
understand DEB_BUILD_OPTIONS nocheck to disable the testexecution
authorDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 17 Aug 2011 13:14:45 +0000 (15:14 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 17 Aug 2011 13:14:45 +0000 (15:14 +0200)
debian/rules

index 541660cfec47e338b8a5e7d13e3ac61c47eafe0b..d6c2dfa227f5628f6662350085781df978a684de 100755 (executable)
@@ -97,7 +97,11 @@ build/configure-stamp: configure
 build/build-stamp: build/configure-stamp
        # Add here commands to compile the package.
        $(MAKE) binary
 build/build-stamp: build/configure-stamp
        # Add here commands to compile the package.
        $(MAKE) binary
+ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
        $(MAKE) test
        $(MAKE) test
+else
+       @echo "Tests DISABLED"
+endif
        touch $@
 
 build/build-doc-stamp: build/configure-stamp
        touch $@
 
 build/build-doc-stamp: build/configure-stamp