Kaynağa Gözat

understand DEB_BUILD_OPTIONS nocheck to disable the testexecution

David Kalnischkies 15 yıl önce
ebeveyn
işleme
224bdefc22
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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