[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] debian/rules: Add support for skipping the test suite per policy 4.9.1



From: David Bremner <bremner@debian.org>

Rational: the lintian test suite is somewhat heavyweight, and
sometimes broken in git. This makes it hard for people to test new
lintian checks.
---
 debian/rules |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/debian/rules b/debian/rules
index 77861c5..497ca49 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,6 +14,12 @@ perlprovides := data/fields/perl-provides
 onlyrun =
 tag =
 
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	testtarget = runtests
+else
+	testtarget =
+endif
+
 runtests: $(neededfiles) $(allchecks) $(allcollect) $(tagfiles) $(testfiles)
 	@echo .... running tests ....
 	rm -rf debian/tests
@@ -37,7 +43,7 @@ refresh-perl-provides:
 	perl private/refresh-perl-provides > $(perlprovides)
 
 build: build-stamp
-build-stamp: $(neededfiles) $(docsource) runtests
+build-stamp: $(neededfiles) $(docsource) $(testtarget)
 	@echo .... running build ....
 	dh_testdir
 	cd doc && LANG=C debiandoc2html lintian.sgml
-- 
1.7.2.3


Reply to: