[libdevice-cdio-perl] 01/08: Skip tests which need a physical CD-ROM device during build.

gregor herrmann gregoa at debian.org
Thu Mar 2 22:32:52 UTC 2017


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

gregoa pushed a commit to branch master
in repository libdevice-cdio-perl.

commit f37b526ef055d9bfb44d5c25fa7edbeafafe8351
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu Mar 2 23:16:14 2017 +0100

    Skip tests which need a physical CD-ROM device during build.
    
    The tests t/05.ops.t and t/11.dev.t were already skipped during autopkgtest
    (by means of debian/tests/pkg-perl/skip-smoke) because it was noted that
    they fail without a physical device, e.g. under QEMU. As the same issue can
    arise during build, skip them as well in debian/rules during build.
    
    Thanks: Santiago Vila for the bug report.
    Closes: #856334
---
 debian/rules | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 98deccb..0cdd75a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,9 @@
 #!/usr/bin/make -f
 
+# skip tests that need a physical CD-ROM drive
+SKIP_TESTS = $(shell cat debian/tests/pkg-perl/skip-smoke)
+TEST_FILES = $(sort $(filter-out $(SKIP_TESTS), $(wildcard t/*.t)))
+
 %:
 	dh $@ --buildsystem=perl_build
 
@@ -24,4 +28,4 @@ override_dh_auto_build:
 	dh_auto_build
 
 override_dh_auto_test:
-	TZ=UTC dh_auto_test
+	TZ=UTC dh_auto_test -- --test_files="$(TEST_FILES)"

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



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