[libtest-lectrotest-perl] 01/06: Skip test t/gens.t during build and autopkgtest.

gregor herrmann gregoa at debian.org
Sun Jan 14 14:05:21 UTC 2018


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libtest-lectrotest-perl.

commit 96f2549eca8d7d09798a4ff9c0d5a5b15b88dcf8
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Jan 14 14:47:23 2018 +0100

    Skip test t/gens.t during build and autopkgtest.
    
    This test can and does fail as it (according to its documentation) "relies
    upon a number of randomized tests and statistical inferences. As a result,
    there is a small probability (about 1 in 200) that some part of the suite
    will fail even if everything is working properly."
---
 debian/rules                     | 6 ++++++
 debian/tests/pkg-perl/smoke-skip | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/debian/rules b/debian/rules
index 2d33f6a..d2b8f41 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,10 @@
 #!/usr/bin/make -f
 
+SKIP_TESTS = $(shell cat debian/tests/pkg-perl/smoke-skip)
+TEST_FILES = $(filter-out $(SKIP_TESTS), $(wildcard t/*.t))
+
 %:
 	dh $@
+
+override_dh_auto_test:
+	dh_auto_test -- TEST_FILES="$(TEST_FILES)"
diff --git a/debian/tests/pkg-perl/smoke-skip b/debian/tests/pkg-perl/smoke-skip
new file mode 100644
index 0000000..b323cad
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-skip
@@ -0,0 +1,2 @@
+# fails in 1/200 cases, according to the test itself
+t/gens.t

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libtest-lectrotest-perl.git



More information about the Pkg-perl-cvs-commits mailing list