[libflickr-api-perl] 14/15: Patch tests to run them in installed version
Lucas Kanashiro
kanashiro-guest at moszumanska.debian.org
Sat Jul 25 20:58:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
kanashiro-guest pushed a commit to branch master
in repository libflickr-api-perl.
commit e7e0744149039fa00ae1de3fe22dee015fbcd5b0
Author: Lucas Kanashiro <kanashiro.duarte at gmail.com>
Date: Sat Jul 25 17:55:21 2015 -0300
Patch tests to run them in installed version
Fix autopkgtest
---
debian/changelog | 1 +
debian/patches/fix_script_path_autopkgtest.patch | 36 ++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 38 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index bfdfa8c..ca57745 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,7 @@ libflickr-api-perl (1.16-1) UNRELEASED; urgency=medium
* Add patch to fix spelling error in manpage (silence lintian)
* Set debhelper >= 9
* Update upstream copyright
+ * Patch tests to run them in installed version (autopkgtest)
-- Lucas Kanashiro <kanashiro.duarte at gmail.com> Sat, 25 Jul 2015 15:38:13 -0300
diff --git a/debian/patches/fix_script_path_autopkgtest.patch b/debian/patches/fix_script_path_autopkgtest.patch
new file mode 100644
index 0000000..62b25f7
--- /dev/null
+++ b/debian/patches/fix_script_path_autopkgtest.patch
@@ -0,0 +1,36 @@
+Description: <short description, required>
+ <long description that can span multiple lines, optional>
+Author: <name and email of author, optional>
+Origin: <upstream|backport|vendor|other>, <URL, required except if Author is present>
+Bug: <URL to the upstream bug report if any, implies patch has been forwarded, optional>
+Bug-<Vendor>: <URL to the vendor bug report if any, optional>
+Forwarded: <URL|no|not-needed, useless if you have a Bug field, optional>
+Applied-Upstream: <version|URL|commit, identifies patches merged upstream, optional>
+Reviewed-by: <name and email of a reviewer, optional>
+Last-Update: <YYYY-MM-DD, last update of the meta-information, optional>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/t/02-oauth_api.t
++++ b/t/02-oauth_api.t
+@@ -132,13 +132,17 @@ isa_ok($api2, 'Flickr::API');
+
+ is_deeply($api2->{oauth}, $api->{oauth}, "Did import_storable_config get back the config we stored");
+
++SKIP: {
+
+-script_compiles('script/flickr_make_stored_config.pl','Does flickr_make_stored_config.pl compile');
+-script_compiles('script/flickr_dump_stored_config.pl','Does flickr_dump_stored_config.pl compile');
++ skip "Run tests with installed version", 3, if $ENV{ADTTMP};
+
+-my @runtime = ('script/flickr_dump_stored_config.pl', '--config_in='.$fname);
++ script_compiles('script/flickr_make_stored_config.pl','Does flickr_make_stored_config.pl compile');
++ script_compiles('script/flickr_dump_stored_config.pl','Does flickr_dump_stored_config.pl compile');
+
+-script_runs(\@runtime, "Did flickr_dump_stored_config.pl run");
++ my @runtime = ('script/flickr_dump_stored_config.pl', '--config_in='.$fname);
++
++ script_runs(\@runtime, "Did flickr_dump_stored_config.pl run");
++}
+
+
+ ########################################################
diff --git a/debian/patches/series b/debian/patches/series
index 8810115..c240505 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+fix_script_path_autopkgtest.patch
fix-spelling-error-in-manpage.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libflickr-api-perl.git
More information about the Pkg-perl-cvs-commits
mailing list