From da5e13af84f61c6e606e6aaffc5a78775706623a Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 24 Jun 2014 13:50:14 +1000 Subject: [PATCH] use $PERL (cherry picked from commit 1c95f672323b7ac176af4225a36d33daa442542c) --- bin/tests/system/autosign/tests.sh | 2 +- bin/tests/system/dnssec/ns3/sign.sh | 2 +- bin/tests/system/dnssec/tests.sh | 6 +++--- bin/tests/system/masterformat/tests.sh | 6 +++--- bin/tests/system/tsiggss/tests.sh | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/tests/system/autosign/tests.sh b/bin/tests/system/autosign/tests.sh index 275152c42a..6b6ddb7641 100644 --- a/bin/tests/system/autosign/tests.sh +++ b/bin/tests/system/autosign/tests.sh @@ -27,7 +27,7 @@ showprivate () { echo "-- $@ --" $DIG $DIGOPTS +nodnssec +short @$2 -t type65534 $1 | cut -f3 -d' ' | while read record; do - perl -e 'my $rdata = pack("H*", @ARGV[0]); + $PERL -e 'my $rdata = pack("H*", @ARGV[0]); die "invalid record" unless length($rdata) == 5; my ($alg, $key, $remove, $complete) = unpack("CnCC", $rdata); my $action = "signing"; diff --git a/bin/tests/system/dnssec/ns3/sign.sh b/bin/tests/system/dnssec/ns3/sign.sh index fc6a5a24dd..d860a67f88 100644 --- a/bin/tests/system/dnssec/ns3/sign.sh +++ b/bin/tests/system/dnssec/ns3/sign.sh @@ -66,7 +66,7 @@ $SIGNER -P -r $RANDFILE -o $zone $zonefile > /dev/null 2>&1 # Change the signer field of the a.b.keyless.example SIG A # to point to a provably nonexistent KEY record. mv $zonefile.signed $zonefile.tmp -<$zonefile.tmp perl -p -e 's/ keyless.example/ b.keyless.example/ +<$zonefile.tmp $PERL -p -e 's/ keyless.example/ b.keyless.example/ if /^a.b.keyless.example/../NXT/;' >$zonefile.signed rm -f $zonefile.tmp diff --git a/bin/tests/system/dnssec/tests.sh b/bin/tests/system/dnssec/tests.sh index d0eece46cb..c1a2ef1344 100644 --- a/bin/tests/system/dnssec/tests.sh +++ b/bin/tests/system/dnssec/tests.sh @@ -33,7 +33,7 @@ showprivate () { echo "-- $@ --" $DIG $DIGOPTS +nodnssec +short @$2 -t type65534 $1 | cut -f3 -d' ' | while read record; do - perl -e 'my $rdata = pack("H*", @ARGV[0]); + $PERL -e 'my $rdata = pack("H*", @ARGV[0]); die "invalid record" unless length($rdata) == 5; my ($alg, $key, $remove, $complete) = unpack("CnCC", $rdata); my $action = "signing"; @@ -58,7 +58,7 @@ checkprivate () { # check that a zone file is raw format, version 0 israw0 () { - cat $1 | perl -e 'binmode STDIN; + cat $1 | $PERL -e 'binmode STDIN; read(STDIN, $input, 8); ($style, $version) = unpack("NN", $input); exit 1 if ($style != 2 || $version != 0);' @@ -67,7 +67,7 @@ israw0 () { # check that a zone file is raw format, version 1 israw1 () { - cat $1 | perl -e 'binmode STDIN; + cat $1 | $PERL -e 'binmode STDIN; read(STDIN, $input, 8); ($style, $version) = unpack("NN", $input); exit 1 if ($style != 2 || $version != 1);' diff --git a/bin/tests/system/masterformat/tests.sh b/bin/tests/system/masterformat/tests.sh index dea12cd844..b5fbe17a3a 100755 --- a/bin/tests/system/masterformat/tests.sh +++ b/bin/tests/system/masterformat/tests.sh @@ -20,7 +20,7 @@ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh israw () { - perl -e 'binmode STDIN; + $PERL -e 'binmode STDIN; read(STDIN, $input, 8); ($style, $version) = unpack("NN", $input); exit 1 if ($style != 2 || $version > 1);' < $1 @@ -28,7 +28,7 @@ israw () { } rawversion () { - perl -e 'binmode STDIN; + $PERL -e 'binmode STDIN; read(STDIN, $input, 8); if (length($input) < 8) { print "not raw\n"; exit 0; }; ($style, $version) = unpack("NN", $input); @@ -36,7 +36,7 @@ rawversion () { } sourceserial () { - perl -e 'binmode STDIN; + $PERL -e 'binmode STDIN; read(STDIN, $input, 20); if (length($input) < 20) { print "UNSET\n"; exit; }; ($format, $version, $dumptime, $flags, $sourceserial) = diff --git a/bin/tests/system/tsiggss/tests.sh b/bin/tests/system/tsiggss/tests.sh index a8220633e0..403f6a32fc 100644 --- a/bin/tests/system/tsiggss/tests.sh +++ b/bin/tests/system/tsiggss/tests.sh @@ -55,7 +55,7 @@ test_update testdenied.example.nil. TXT "86400 TXT helloworld" "helloworld" || s echo "I:testing external update policy" test_update testcname.example.nil. TXT "86400 CNAME testdenied.example.nil" "testdenied" && status=1 -perl ./authsock.pl --type=CNAME --path=ns1/auth.sock --pidfile=authsock.pid --timeout=120 > /dev/null 2>&1 & +$PERL ./authsock.pl --type=CNAME --path=ns1/auth.sock --pidfile=authsock.pid --timeout=120 > /dev/null 2>&1 & sleep 1 test_update testcname.example.nil. TXT "86400 CNAME testdenied.example.nil" "testdenied" || status=1 test_update testcname.example.nil. TXT "86400 A 10.53.0.13" "10.53.0.13" && status=1