[liburi-find-perl] 01/05: Fix autopkgests.

gregor herrmann gregoa at debian.org
Tue Aug 1 18:57:03 UTC 2017


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

gregoa pushed a commit to branch master
in repository liburi-find-perl.

commit 3511502b5c6ca7dce67df4e2e27230715279e393
Author: gregor herrmann <gregoa at debian.org>
Date:   Tue Aug 1 14:52:33 2017 -0400

    Fix autopkgests.
---
 debian/patches/autopkgtest.patch | 16 ++++++++++++++++
 debian/patches/series            |  1 +
 debian/tests/pkg-perl/smoke-skip |  3 +++
 3 files changed, 20 insertions(+)

diff --git a/debian/patches/autopkgtest.patch b/debian/patches/autopkgtest.patch
new file mode 100644
index 0000000..89d6b26
--- /dev/null
+++ b/debian/patches/autopkgtest.patch
@@ -0,0 +1,16 @@
+Description: change path to script when run under autopkgtest
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2017-08-01
+
+--- a/t/urifind/find.t
++++ b/t/urifind/find.t
+@@ -8,6 +8,7 @@
+ ok(my $ifile = File::Spec->catfile(qw(t urifind sciencenews)),
+     "Test file found");
+ my $urifind = File::Spec->catfile(qw(blib script urifind));
++$urifind = '/usr/bin/urifind' if $ENV{ADTTMP};
+ my @data = `$^X $urifind $ifile`;
+ 
+ is(@data, 13, "Correct number of elements");
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..aba7ccb
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+autopkgtest.patch
diff --git a/debian/tests/pkg-perl/smoke-skip b/debian/tests/pkg-perl/smoke-skip
new file mode 100644
index 0000000..a4585e3
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-skip
@@ -0,0 +1,3 @@
+# POD tests are less relevant,                                                                          
+# and under autopkgtest the file is in a different place
+t/urifind/pod.t

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



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