diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-04 09:27:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-04 09:27:04 +0000 |
commit | 81fa0bc63909a67cdd6d321617a2e5648a6a94a2 (patch) | |
tree | 2b0a2eae7aed22e3c6f707283d7617d8c02b3fbe /src/test/test13.sh | |
parent | Adding upstream version 2.1.3. (diff) | |
download | dnscap-upstream/2.2.0.tar.xz dnscap-upstream/2.2.0.zip |
Adding upstream version 2.2.0.upstream/2.2.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | src/test/test13.sh | 28 |
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 |