File: autopkgtest.patch

package info (click to toggle)
libpod-markdown-perl 3.005000-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 440 kB
  • ctags: 114
  • sloc: perl: 990; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: test installed script when run under autopkgtest
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2015-09-04

--- a/t/00-compile.t
+++ b/t/00-compile.t
@@ -13,8 +13,10 @@
     'Pod/Perldoc/ToMarkdown.pm'
 );
 
+my $bindir = $ENV{ADTTMP} ? '/usr/bin' : 'bin';
+
 my @scripts = (
-    'bin/pod2markdown'
+    "$bindir/pod2markdown"
 );
 
 # fake home for cpan-testers
--- a/t/pod2markdown.t
+++ b/t/pod2markdown.t
@@ -11,6 +11,8 @@
   ? ('blib/lib', 'blib/script')
   : ('lib',      'bin');
 
+$bin = '/usr/bin' if $ENV{ADTTMP};
+
 my $script = catfile($bin, qw(pod2markdown));
 
 my ($tmp_in,   $infile) = tempfile( 'pod2markdown-in.XXXXXX',  TMPDIR => 1, UNLINK => 1 );