From: David Bremner <[email protected]>

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


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
http://lists.debian.org/[email protected]

Reply via email to