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 541660c..d6c2dfa 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
+ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
        $(MAKE) test
+else
+       @echo "Tests DISABLED"
+endif
        touch $@
 
 build/build-doc-stamp: build/configure-stamp