[libbot-training-perl] 01/02: Patch test setting right binary path in autopkgtest

Lucas Kanashiro kanashiro-guest at moszumanska.debian.org
Wed Aug 12 13:56:32 UTC 2015


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

kanashiro-guest pushed a commit to branch master
in repository libbot-training-perl.

commit 49a5d236da7ac35bbffc41c74328529cc4045511
Author: Lucas Kanashiro <kanashiro.duarte at gmail.com>
Date:   Wed Aug 12 10:36:20 2015 -0300

    Patch test setting right binary path in autopkgtest
---
 debian/changelog                             |  1 +
 debian/patches/fix_binary_path_in_test.patch | 18 ++++++++++++++++++
 debian/patches/series                        |  1 +
 3 files changed, 20 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 32967ec..e34608e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,7 @@ libbot-training-perl (0.06-1) UNRELEASED; urgency=medium
   * Add autopkgtest-pkg-perl
   * Add module name in long description
   * Update year of upstream copyright
+  * Patch test setting right binary path in autopkgtest
 
  -- Lucas Kanashiro <kanashiro.duarte at gmail.com>  Wed, 12 Aug 2015 09:37:41 -0300
 
diff --git a/debian/patches/fix_binary_path_in_test.patch b/debian/patches/fix_binary_path_in_test.patch
new file mode 100644
index 0000000..048b0c6
--- /dev/null
+++ b/debian/patches/fix_binary_path_in_test.patch
@@ -0,0 +1,18 @@
+Description: change binary path in autopkgtest
+ Set /usr/bin/ in binary path if it have been runned with autopkgtest, where we
+ have just a installed version.
+Forwarded: not-needed
+Author: Lucas Kanashiro <kanashiro.duarte at gmail.com>
+Last-Update: 2015-08-12
+
+--- a/t/00-compile.t
++++ b/t/00-compile.t
+@@ -17,6 +17,8 @@ my @scripts = (
+     'bin/bot-training'
+ );
+ 
++ at scripts = ('/usr/bin/bot-trainig') if $ENV{ADTTMP};
++
+ # no fake home requested
+ 
+ my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib';
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a545433
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_binary_path_in_test.patch

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



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