Just use #! /usr/bin/env perl.

That's a simpler way to deal with the Perl interpreter not being in
/usr/bin.
This commit is contained in:
Guy Harris 2014-05-01 19:56:26 -07:00
parent 2708ee9830
commit e02b9c9f65
5 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
system("mkdir -p NEW DIFF");

View File

@ -32,7 +32,7 @@ runSimpleTests()
'') continue;;
esac
[ "$only" != "" -a "$name" != "$only" ] && continue
if perl ./TESTonce $name $input $output "$options"
if ./TESTonce $name $input $output "$options"
then
passed=`expr $passed + 1`
echo $passed >.passed

View File

@ -4,13 +4,13 @@
if grep '^#define HAVE_LIBCRYPTO 1$' ../config.h >/dev/null
then
perl ./TESTonce esp1 02-sunrise-sunset-esp.pcap esp1.out '-t -E "0x12345678@192.1.2.45 3des-cbc-hmac96:0x4043434545464649494a4a4c4c4f4f515152525454575758"'
perl ./TESTonce esp2 08-sunrise-sunset-esp2.pcap esp2.out '-t -E "0x12345678@192.1.2.45 3des-cbc-hmac96:0x43434545464649494a4a4c4c4f4f51515252545457575840,0xabcdabcd@192.0.1.1 3des-cbc-hmac96:0x434545464649494a4a4c4c4f4f5151525254545757584043"'
perl ./TESTonce esp3 02-sunrise-sunset-esp.pcap esp1.out '-t -E "3des-cbc-hmac96:0x4043434545464649494a4a4c4c4f4f515152525454575758"'
perl ./TESTonce esp4 08-sunrise-sunset-esp2.pcap esp2.out '-t -E "file esp-secrets.txt"'
perl ./TESTonce esp5 08-sunrise-sunset-aes.pcap esp5.out '-t -E "file esp-secrets.txt"'
perl ./TESTonce espudp1 espudp1.pcap espudp1.out '-nnnn -t -E "file esp-secrets.txt"'
perl ./TESTonce ikev2pI2 ikev2pI2.pcap ikev2pI2.out '-t -E "file ikev2pI2-secrets.txt" -v -v -v -v'
./TESTonce esp1 02-sunrise-sunset-esp.pcap esp1.out '-t -E "0x12345678@192.1.2.45 3des-cbc-hmac96:0x4043434545464649494a4a4c4c4f4f515152525454575758"'
./TESTonce esp2 08-sunrise-sunset-esp2.pcap esp2.out '-t -E "0x12345678@192.1.2.45 3des-cbc-hmac96:0x43434545464649494a4a4c4c4f4f51515252545457575840,0xabcdabcd@192.0.1.1 3des-cbc-hmac96:0x434545464649494a4a4c4c4f4f5151525254545757584043"'
./TESTonce esp3 02-sunrise-sunset-esp.pcap esp1.out '-t -E "3des-cbc-hmac96:0x4043434545464649494a4a4c4c4f4f515152525454575758"'
./TESTonce esp4 08-sunrise-sunset-esp2.pcap esp2.out '-t -E "file esp-secrets.txt"'
./TESTonce esp5 08-sunrise-sunset-aes.pcap esp5.out '-t -E "file esp-secrets.txt"'
./TESTonce espudp1 espudp1.pcap espudp1.out '-nnnn -t -E "file esp-secrets.txt"'
./TESTonce ikev2pI2 ikev2pI2.pcap ikev2pI2.out '-t -E "file ikev2pI2-secrets.txt" -v -v -v -v'
else
FORMAT=' %-30s: TEST SKIPPED (compiled w/o OpenSSL)\n'
printf "$FORMAT" esp1

View File

@ -8,7 +8,7 @@
if grep '^CC = .*gcc' ../Makefile >/dev/null
then
perl ./TESTonce lmp-v lmp.pcap lmp-v.out '-t -T lmp -v'
./TESTonce lmp-v lmp.pcap lmp-v.out '-t -T lmp -v'
else
printf ' %-30s: TEST SKIPPED (compiler is not GCC)\n' 'lmp-v'
fi

View File

@ -4,7 +4,7 @@
if grep '^#define HAVE_PCAP_NFLOG_H 1$' ../config.h >/dev/null
then
perl ./TESTonce nflog-e nflog.pcap nflog-e.out '-t -e'
./TESTonce nflog-e nflog.pcap nflog-e.out '-t -e'
else
printf ' %-30s: TEST SKIPPED (compiled w/o NFLOG)\n' 'nflog-e'
fi