From: Peter van Dijk Date: Thu, 23 Jan 2014 22:15:14 +0000 (+0100) Subject: use gawk to avoid gawk/mawk differences X-Git-Tag: rec-3.6.0-rc1~225 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2554a46c71eeb6a1157f23f47fe48518e592ccc2;p=pdns use gawk to avoid gawk/mawk differences --- diff --git a/regression-tests/backends/remote-master b/regression-tests/backends/remote-master index b0b0333f1..652a6a19d 100644 --- a/regression-tests/backends/remote-master +++ b/regression-tests/backends/remote-master @@ -99,7 +99,7 @@ EOF fi # add DS records into list-all-records - ../pdns/pdnssec --config-dir=. --config-name=remote show-zone up.example.com | awk '{ if ($1=="DS") { printf "up.example.com. 120 IN DS " $6 " " $7 " " $8 " " substr(toupper($9),0,56); if (length($9)>56) { print " " substr(toupper($9),57) } else { print "" } } }' > $testsdir/list-all-records/expected_dnssec_part2 + ../pdns/pdnssec --config-dir=. --config-name=remote show-zone up.example.com | gawk '{ if ($1=="DS") { printf "up.example.com. 120 IN DS " $6 " " $7 " " $8 " " substr(toupper($9),0,56); if (length($9)>56) { print " " substr(toupper($9),57) } else { print "" } } }' > $testsdir/list-all-records/expected_dnssec_part2 cat $testsdir/list-all-records/expected_dnssec_part1 $testsdir/list-all-records/expected_dnssec_part2 $testsdir/list-all-records/expected_dnssec_part3 > $testsdir/list-all-records/expected_result.dnssec cp -f $testsdir/list-all-records/expected_result.dnssec $testsdir/list-all-records/expected_result.nsec3 fi