diff options
Diffstat (limited to 'src/test/test12.sh')
-rwxr-xr-x | src/test/test12.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test12.sh b/src/test/test12.sh index 76b0e01..9243ed9 100755 --- a/src/test/test12.sh +++ b/src/test/test12.sh @@ -1,6 +1,8 @@ #!/bin/sh -xe -if ! ../dnscap -g -r dns.pcap-dist -w test12 -W .gz 2>test12.out; then +test -e dns.pcap || ln -s "$srcdir/dns.pcap" dns.pcap + +if ! ../dnscap -g -r dns.pcap -w test12 -W .gz 2>test12.out; then grep -qF "gzip compression requested but not supported" test12.out && exit 0 exit 1 fi |