1
0
mirror of synced 2026-01-13 15:17:30 +00:00

Make test suite work with perl in $PATH instead of hardcoded /usr/bin/perl

This commit is contained in:
Axel Beckert 2014-09-25 19:40:26 +02:00
parent d2617ea85f
commit edc7737cb3
22 changed files with 24 additions and 22 deletions

View File

@ -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.

View File

@ -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.

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!perl -w
#
# Test that .gitignore is coherent
#

View File

@ -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.
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!perl -w
#
# Test that we get an /etc/hosts etc file created when DHCP is used.
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!perl -w
#
# Test that the /etc/inittab file is modified as we expect.
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!perl
#
# Test that the tls-disabling hook works.
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!perl -w
#
# Test that all the hook files we install are executable.
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!perl -w
#
# Test that every perl + shell script we have contains no tabs.
#

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!perl -w
#
# Test that the plugins each refer to environmental variables,
# not the perl config hash.

View File

@ -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.

View File

@ -1,3 +1,5 @@
#!perl
use strict;
use warnings;
use Test::More;

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!perl
#
# Test that the POD we use in our modules is valid.
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!perl -w
#
# Test that we don't use non-portable shell syntax in our hooks.
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w -I..
#!perl -w -I..
#
# Test that we have several required programs present.
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!perl -w
#
# Test that every bash script using variables uses " not ' around the
# variable.

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!perl -w
#
# Test that every shell script we have passes a syntax check.
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!perl -w
#
# Test that every script in ./bin/ has no trailing whitespace.
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!perl -w
#
# Test that the xen-delete-image script will delete an images
# contents correctly.

View File

@ -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.

View File

@ -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