summaryrefslogtreecommitdiffstats
path: root/src/test/test12.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-09-04 09:27:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-09-04 09:27:09 +0000
commit1b3eac6c9237c6c12222e450d1c1a57b694cd513 (patch)
tree60b31928c005874cc41b95d242aa3b9e8400171a /src/test/test12.sh
parentReleasing debian version 2.1.3-2. (diff)
downloaddnscap-1b3eac6c9237c6c12222e450d1c1a57b694cd513.tar.xz
dnscap-1b3eac6c9237c6c12222e450d1c1a57b694cd513.zip
Merging upstream version 2.2.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/test12.sh')
-rwxr-xr-xsrc/test/test12.sh4
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