summaryrefslogtreecommitdiffstats
path: root/src/test/test4.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-03-12 21:08:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-03-12 21:08:16 +0000
commit679f9767ea6246b02ce4e8142083878ffb99e4cb (patch)
tree93c6a5781ee409ae9a3b2db88dc0399e33e650fb /src/test/test4.sh
parentReleasing debian version 2.4.2+debian-2. (diff)
downloaddnsperf-679f9767ea6246b02ce4e8142083878ffb99e4cb.tar.xz
dnsperf-679f9767ea6246b02ce4e8142083878ffb99e4cb.zip
Merging upstream version 2.5.0+debian.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/test4.sh')
-rwxr-xr-xsrc/test/test4.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/test4.sh b/src/test/test4.sh
new file mode 100755
index 0000000..5b334af
--- /dev/null
+++ b/src/test/test4.sh
@@ -0,0 +1,9 @@
+#!/bin/sh -xe
+
+test "$TEST_DNSPERF_WITH_NETWORK" = "1" || exit 0
+
+../dnsperf -vvv -d "$srcdir/datafile4" -t 0 -s 127.0.0.1 >test4.out 2>test4err.out
+
+grep 'api-read.facebook.com.\\002\\004\\003\\002\\002\\002\\002\\005\\004\\004\\003\\004\\006\\005\\006\\006\\006\\005\\006\\006\\006\\007\\009\\008\\006\\007\\009\\007\\006\\006\\008\\011\\008\\009\\010\\010\\010\\010\\010\\006\\008\\011\\012\\011\\010\\012\\009\\010\\010\\010\\255\\219. A' test4.out
+grep 'T valid\\.quote.com A' test4.out
+grep 'Warning: invalid domain name (or out of space): invalid\\0quote.com' test4err.out