summaryrefslogtreecommitdiffstats
path: root/src/test/test2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test2.sh')
-rwxr-xr-xsrc/test/test2.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/test2.sh b/src/test/test2.sh
index 83cc8c0..7a5d981 100755
--- a/src/test/test2.sh
+++ b/src/test/test2.sh
@@ -1,6 +1,8 @@
#!/bin/sh -xe
-../dnscap -g -r dns.pcap-dist 2>no-layers.out
-../dnscap -g -r dns.pcap-dist -o use_layers=yes 2>layers.out
+test -e dns.pcap || ln -s "$srcdir/dns.pcap" dns.pcap
+
+../dnscap -g -r dns.pcap 2>no-layers.out
+../dnscap -g -r dns.pcap -o use_layers=yes 2>layers.out
diff no-layers.out layers.out