Make test suite work with perl in $PATH instead of hardcoded /usr/bin/perl
This commit is contained in:
parent
d2617ea85f
commit
edc7737cb3
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that the arguments in etc/xen-tools.conf match those used in
|
||||
# xen-create-image.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that every perl script accepts and processes each of the options
|
||||
# documented in its POD.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that .gitignore is coherent
|
||||
#
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that our policy-rc.d file is created and removed as we expect in our hooks.
|
||||
#
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that we get an /etc/hosts etc file created when DHCP is used.
|
||||
#
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that the /etc/inittab file is modified as we expect.
|
||||
#
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl
|
||||
#!perl
|
||||
#
|
||||
# Test that the tls-disabling hook works.
|
||||
#
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that all the hook files we install are executable.
|
||||
#
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that every perl + shell script we have contains no tabs.
|
||||
#
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that every perl file we have passes the syntax check. This of
|
||||
# course needs not only build dependencies but also run-time
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that the plugins each refer to environmental variables,
|
||||
# not the perl config hash.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that the POD we include in our scripts is valid, via the external
|
||||
# podchecker command.
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#!perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More;
|
||||
|
||||
2
t/pod.t
2
t/pod.t
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl
|
||||
#!perl
|
||||
#
|
||||
# Test that the POD we use in our modules is valid.
|
||||
#
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that we don't use non-portable shell syntax in our hooks.
|
||||
#
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w -I..
|
||||
#!perl -w -I..
|
||||
#
|
||||
# Test that we have several required programs present.
|
||||
#
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that every bash script using variables uses " not ' around the
|
||||
# variable.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that every shell script we have passes a syntax check.
|
||||
#
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that every script in ./bin/ has no trailing whitespace.
|
||||
#
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that the xen-delete-image script will delete an images
|
||||
# contents correctly.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that the xen-list-images script can process two "fake"
|
||||
# installations which we construct manually.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!perl -w
|
||||
#
|
||||
# Test that calling xt-create-xen-config with the appropriate parameters
|
||||
# results in output we expect.
|
||||
@ -159,7 +159,7 @@ sub runCreateCommand
|
||||
#
|
||||
# Run the command
|
||||
#
|
||||
system( "./bin/xt-create-xen-config --output=$dir --template=./etc/xm.tmpl" );
|
||||
system( "perl ./bin/xt-create-xen-config --output=$dir --template=./etc/xm.tmpl" );
|
||||
|
||||
#
|
||||
# Reset the environment
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user