Procházet zdrojové kódy

understand DEB_BUILD_OPTIONS nocheck to disable the testexecution

David Kalnischkies před 15 roky
rodič
revize
224bdefc22
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      debian/rules

+ 4 - 0
debian/rules

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