diff options
author | Henryk Plötz <henryk@ploetzli.ch> | 2014-10-03 20:34:48 +0200 |
---|---|---|
committer | Henryk Plötz <henryk@ploetzli.ch> | 2014-10-03 20:34:48 +0200 |
commit | fdef80133f42f79d71dee7cb70dd872f94bec124 (patch) | |
tree | 16ab1b3350bcf997d3200e67037f21b16d0cbe90 | |
parent | 1c7b1e2916816829da6e8ae7b601e0511e506237 (diff) | |
download | tinydnssec-fdef80133f42f79d71dee7cb70dd872f94bec124.tar.gz tinydnssec-fdef80133f42f79d71dee7cb70dd872f94bec124.tar.bz2 |
Fix for GNU tail.
GNU tail does not understand 'tail +2' syntax and needs 'tail -n +2'.
-rwxr-xr-x | run-tests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run-tests.sh b/run-tests.sh index 14d2c88..2303045 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -21,7 +21,7 @@ for i in test/q-*; do id="${i#test/q}" echo -n "$i ... " read sec type name <"$i" - ./tinydns-get "$sec" "$type" $name | tail +2 >test/"o$id" + ./tinydns-get "$sec" "$type" $name | tail -n +2 >test/"o$id" sed -s 's/\b[0-9]\{10\}\b/<TIME>/g;/00 RRSIG /s/[^ ]*$/<SIG>/;s/^[0-9]\{1,\}/<SIZE>/' <test/"o$id" >test/"t$id" if diff "test/t$id" "test/a$id" >/dev/null; then echo "OK" |