d/rules: support DEB_BUILD_OPTIONS=nocheck
authorMattia Rizzolo <mattia@debian.org>
Tue, 24 Oct 2017 15:53:20 +0000 (17:53 +0200)
committerMattia Rizzolo <mattia@debian.org>
Tue, 24 Oct 2017 15:53:20 +0000 (17:53 +0200)
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
debian/rules

index ce2dadc1f9d7047c087e304dd6b6e3ea7291bc52..cb44816f1b1b46ec5d3887b71899cfa68ff38528 100755 (executable)
@@ -22,8 +22,12 @@ clean: clean-tests
 override_dh_install: clean-tests
        dh_install -Xtest.gtf.gz
 
+ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
 override_dh_auto_test: pysam_data.all cbcf_data.all
        dh_auto_test
+else
+override_dh_auto_test:
+endif
 
 override_dh_auto_clean:
        dh_auto_clean