summaryrefslogtreecommitdiffstats
path: root/src/test/test13.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/test13.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/test13.sh')
-rwxr-xr-xsrc/test/test13.sh28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/test/test13.sh b/src/test/test13.sh
index 4749a92..4b8d523 100755
--- a/src/test/test13.sh
+++ b/src/test/test13.sh
@@ -2,6 +2,8 @@
test -f /etc/resolv.conf || exit 0
+test -e dns.pcap || ln -s "$srcdir/dns.pcap" dns.pcap
+
! ../dnscap -a "fake_host-should+not/work" 2>test13.out
cat test13.out
grep -qF "invalid host address" test13.out
@@ -9,20 +11,20 @@ grep -qF "invalid host address" test13.out
if [ "`uname`" = "OpenBSD" ]; then
# IPv6 addresses in BPF seems to segfault on OpenBSD and doing host and
# not host throws generic pcap_compile error
- ../dnscap -a 127.0.0.1 -r dns.pcap-dist -g -dddd
- ../dnscap -z 127.0.0.1 -r dns.pcap-dist -g -dddd
- ../dnscap -A 127.0.0.1 -r dns.pcap-dist -g -dddd
- ../dnscap -Z 127.0.0.1 -r dns.pcap-dist -g -dddd
- ../dnscap -Y 127.0.0.1 -r dns.pcap-dist -g -dddd
+ ../dnscap -a 127.0.0.1 -r dns.pcap -g -dddd
+ ../dnscap -z 127.0.0.1 -r dns.pcap -g -dddd
+ ../dnscap -A 127.0.0.1 -r dns.pcap -g -dddd
+ ../dnscap -Z 127.0.0.1 -r dns.pcap -g -dddd
+ ../dnscap -Y 127.0.0.1 -r dns.pcap -g -dddd
else
- ../dnscap -a 127.0.0.1 -a ::1 -r dns.pcap-dist -g -dddd
- ../dnscap -z 127.0.0.1 -z ::1 -r dns.pcap-dist -g -dddd
- ../dnscap -A 127.0.0.1 -A ::1 -r dns.pcap-dist -g -dddd
- ../dnscap -Z 127.0.0.1 -Z ::1 -r dns.pcap-dist -g -dddd
- ../dnscap -Y 127.0.0.1 -Y ::1 -r dns.pcap-dist -g -dddd
+ ../dnscap -a 127.0.0.1 -a ::1 -r dns.pcap -g -dddd
+ ../dnscap -z 127.0.0.1 -z ::1 -r dns.pcap -g -dddd
+ ../dnscap -A 127.0.0.1 -A ::1 -r dns.pcap -g -dddd
+ ../dnscap -Z 127.0.0.1 -Z ::1 -r dns.pcap -g -dddd
+ ../dnscap -Y 127.0.0.1 -Y ::1 -r dns.pcap -g -dddd
fi
if [ "$TEST_DNSCAP_WITH_NETWORK" = "1" ]; then
- ../dnscap -a google.com -r dns.pcap-dist -g -dddd
+ ../dnscap -a google.com -r dns.pcap -g -dddd
fi
-../dnscap -Y 127.0.0.1 -r dns.pcap-dist -g
-../dnscap -Y 8.8.8.8 -r dns.pcap-dist -g
+../dnscap -Y 127.0.0.1 -r dns.pcap -g
+../dnscap -Y 8.8.8.8 -r dns.pcap -g