File: autopkgtests.patch

package info (click to toggle)
libapache-asp-perl 2.63-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 4,120 kB
  • sloc: perl: 6,044; php: 409; sh: 62; lisp: 22; makefile: 10
file content (24 lines) | stat: -rw-r--r-- 659 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: asp-perl is in a different place when tests are run under autopkgtest
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2018-04-01

--- a/t/asp-perl1.t
+++ b/t/asp-perl1.t
@@ -11,4 +11,5 @@
 
 @ARGV = ('-b', '-f', 'asp-perl/asp.conf', 'asp-perl/ok.inc');
 use lib qw(../blib/lib ../lib);
-do "../asp-perl";
+my $bindir = $ENV{ADTTMP} ? '/usr/bin' : '../';
+do "$bindir/asp-perl";
--- a/t/asp-perl2.t
+++ b/t/asp-perl2.t
@@ -8,4 +8,5 @@
 
 @ARGV = ('-b', 'ok.inc');
 use lib qw(../../blib/lib ../../lib);
-do "../../asp-perl";
+my $bindir = $ENV{ADTTMP} ? '/usr/bin' : '../../';
+do "$bindir/asp-perl";