File: autopkgtest-compile.patch

package info (click to toggle)
libbio-eutilities-perl 1.77-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 936 kB
  • sloc: xml: 3,491; perl: 3,102; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 590 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Use the installed scripts in t/00-compile during autopkgtest
Forwarded: not-needed
Author: Carnë Draug <carandraug+dev@gmail.com>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2020-01-29

--- a/t/00-compile.t
+++ b/t/00-compile.t
@@ -30,9 +30,10 @@
     'Bio/Tools/EUtilities/Summary/ItemContainerI.pm'
 );
 
-my @scripts = (
-    'bin/bp_einfo',
-    'bin/bp_genbank_ref_extractor'
+my $bindir = $ENV{AUTOPKGTEST_TMP} ? '/usr/bin' : 'bin';
+my @scripts = map { "$bindir/$_" } (
+    'bp_einfo',
+    'bp_genbank_ref_extractor'
 );
 
 # no fake home requested