[libarchive-zip-perl] 06/07: Mark package as autopkgtest-able.
gregor herrmann
gregoa at debian.org
Wed Oct 22 19:13:31 UTC 2014
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libarchive-zip-perl.
commit 4474f947f65a17f44ff57d968afb98e960c7d330
Author: gregor herrmann <gregoa at debian.org>
Date: Wed Oct 22 21:12:05 2014 +0200
Mark package as autopkgtest-able.
---
debian/control | 1 +
.../0002-TODO-test-for-rt.cpan.org-73797-deflated-empty-file-.patch | 5 +++--
debian/tests/pkg-perl/skip-smoke | 2 ++
debian/tests/pkg-perl/test-files | 3 +++
4 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 2420d55..6fcadfa 100644
--- a/debian/control
+++ b/debian/control
@@ -13,6 +13,7 @@ Standards-Version: 3.9.6
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libarchive-zip-perl.git
Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libarchive-zip-perl.git
Homepage: https://metacpan.org/release/Archive-Zip
+Testsuite: autopkgtest-pkg-perl
Package: libarchive-zip-perl
Architecture: all
diff --git a/debian/patches/0002-TODO-test-for-rt.cpan.org-73797-deflated-empty-file-.patch b/debian/patches/0002-TODO-test-for-rt.cpan.org-73797-deflated-empty-file-.patch
index c249e76..0e481e5 100644
--- a/debian/patches/0002-TODO-test-for-rt.cpan.org-73797-deflated-empty-file-.patch
+++ b/debian/patches/0002-TODO-test-for-rt.cpan.org-73797-deflated-empty-file-.patch
@@ -25,7 +25,7 @@ from OpenJDK 6:
--- /dev/null
+++ b/t/17_bug_73797.t
-@@ -0,0 +1,25 @@
+@@ -0,0 +1,26 @@
+#!/usr/bin/perl
+
+use strict;
@@ -41,7 +41,8 @@ from OpenJDK 6:
+
+my $zip = Archive::Zip->new();
+isa_ok( $zip, 'Archive::Zip' );
-+is( $zip->read('t/data/jar.zip'), AZ_OK, 'Read file' );
++my $dir = $ENV{ADTTMP} ? "debian/t/data" : "t/data";
++is( $zip->read("$dir/jar.zip"), AZ_OK, 'Read file' );
+is($zip->writeToFileNamed(OUTPUTZIP), AZ_OK, 'Wrote file');
+
+my ($status, $zipout) = testZip();
diff --git a/debian/tests/pkg-perl/skip-smoke b/debian/tests/pkg-perl/skip-smoke
new file mode 100644
index 0000000..37e9c86
--- /dev/null
+++ b/debian/tests/pkg-perl/skip-smoke
@@ -0,0 +1,2 @@
+# needs debian/t/data/
+# t/17_bug_73797.t
diff --git a/debian/tests/pkg-perl/test-files b/debian/tests/pkg-perl/test-files
new file mode 100644
index 0000000..c5c198e
--- /dev/null
+++ b/debian/tests/pkg-perl/test-files
@@ -0,0 +1,3 @@
+t/
+examples/
+debian/t/data/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libarchive-zip-perl.git
More information about the Pkg-perl-cvs-commits
mailing list