[libbio-eutilities-perl] 10/10: Set package testsuite to use autopkgtest.
Carnë Draug
carandraug+dev at gmail.com
Mon Feb 6 18:13:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
carandraug-guest pushed a commit to branch master
in repository libbio-eutilities-perl.
commit 8c8c4a847902e64e7c4c79e116eced01765ca0de
Author: Carnë Draug <carandraug+dev at gmail.com>
Date: Mon Feb 6 18:05:26 2017 +0000
Set package testsuite to use autopkgtest.
* patch t/00-compile.t to use installed scripts.
* include inc/ for the files sued for smoke test
---
debian/control | 1 +
debian/patches/autopkgtest-compile.patch | 22 ++++++++++++++++++++++
debian/patches/series | 1 +
debian/tests/pkg-perl/smoke-files | 2 ++
4 files changed, 26 insertions(+)
diff --git a/debian/control b/debian/control
index ac20a1e..457414b 100644
--- a/debian/control
+++ b/debian/control
@@ -16,6 +16,7 @@ Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libbio-eutilities-perl.git
Vcs-Git: https://anonscm.debian.org/git/pkg-perl/packages/libbio-eutilities-perl.git
Homepage: https://metacpan.org/release/Bio-EUtilities
+Testsuite: autopkgtest-pkg-perl
Package: libbio-eutilities-perl
Architecture: all
diff --git a/debian/patches/autopkgtest-compile.patch b/debian/patches/autopkgtest-compile.patch
new file mode 100644
index 0000000..bb8f0c8
--- /dev/null
+++ b/debian/patches/autopkgtest-compile.patch
@@ -0,0 +1,22 @@
+Description: Use the installed scripts in t/00-compile during autopkgtest
+Author: Carnë Draug <carandraug+dev at gmail.com>
+Last-Update: Mon 6 Feb 18:03:50 GMT 2017
+
+Index: libbio-eutilities-perl/t/00-compile.t
+===================================================================
+--- libbio-eutilities-perl.orig/t/00-compile.t
++++ libbio-eutilities-perl/t/00-compile.t
+@@ -29,9 +29,10 @@ my @module_files = (
+ 'Bio/Tools/EUtilities/Summary/ItemContainerI.pm'
+ );
+
+-my @scripts = (
+- 'bin/bp_einfo',
+- 'bin/bp_genbank_ref_extractor'
++my $bindir = $ENV{ADTTMP} ? '/usr/bin' : 'bin';
++my @scripts = map { "$bindir/$_" } (
++ 'bp_einfo',
++ 'bp_genbank_ref_extractor'
+ );
+
+ # no fake home requested
diff --git a/debian/patches/series b/debian/patches/series
index 186087d..a9c944d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
inline-DTDs-on-testsuite
+autopkgtest-compile.patch
diff --git a/debian/tests/pkg-perl/smoke-files b/debian/tests/pkg-perl/smoke-files
new file mode 100644
index 0000000..39dc22c
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-files
@@ -0,0 +1,2 @@
+inc/
+t/
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libbio-eutilities-perl.git
More information about the Pkg-perl-cvs-commits
mailing list