summaryrefslogtreecommitdiffstats
path: root/src/test/test2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test2.sh')
-rwxr-xr-xsrc/test/test2.sh15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/test/test2.sh b/src/test/test2.sh
index 56932f9..e42ef49 100755
--- a/src/test/test2.sh
+++ b/src/test/test2.sh
@@ -72,6 +72,12 @@ grep -q "Queries sent: *2" test2.out
# May work on slower systems
../resperf -s $ip -m 1 -d "$srcdir/datafile2" -r 2 -c 2 -M dot || true
+# TYPE test
+../dnsperf -s $ip -d "$srcdir/datafile5" -n 1 -W >test2.out
+cat test2.out
+grep -q "Queries sent: *4" test2.out
+grep -q "Warning: invalid qtype: TYPE99999999" test2.out
+
done # for ip
../dnsperf -s 127.66.66.66 -d "$srcdir/datafile" -vvvv -m tcp -n 1 &
@@ -82,15 +88,6 @@ pkill -KILL -u `id -u` dnsperf || true
sleep 2
pkill -KILL -u `id -u` dnsperf || true
-! echo "invalid" | ../dnsperf -s 127.66.66.66 -m tcp
-! echo "invalid invalid" | ../dnsperf -s 127.66.66.66 -m tcp
-echo "invalid" | ../dnsperf -u -s 127.66.66.66 -m tcp &
-sleep 2
-pkill -KILL -u `id -u` dnsperf || true
-echo "invalid\ninvalid" | ../dnsperf -u -s 127.66.66.66 -m tcp &
-sleep 2
-pkill -KILL -u `id -u` dnsperf || true
-
! echo "google.com A" \
| ../dnsperf -W -s 1.1.1.1 -y tooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong:Ax42vsuHBjQOKlVHO8yU1zGuQ5hjeSz01LXiNze8pb8= \
| grep "adding TSIG: invalid owner name"