diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-10-08 08:43:47 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-10-08 08:44:17 +0000 |
commit | a3fca4ba67dbd205be1fecbd4bbffe21cf778400 (patch) | |
tree | c24dbb6cb98906ecd3867ab21037425e6aa63f9e /src/test | |
parent | Releasing debian version 2.7.0-1. (diff) | |
download | dnsperf-a3fca4ba67dbd205be1fecbd4bbffe21cf778400.tar.xz dnsperf-a3fca4ba67dbd205be1fecbd4bbffe21cf778400.zip |
Merging upstream version 2.7.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/Makefile.am | 6 | ||||
-rw-r--r-- | src/test/Makefile.in | 13 | ||||
-rw-r--r-- | src/test/datafile6 | 26 | ||||
-rwxr-xr-x | src/test/test6.sh | 7 |
4 files changed, 46 insertions, 6 deletions
diff --git a/src/test/Makefile.am b/src/test/Makefile.am index 05439fa..3c5e0d2 100644 --- a/src/test/Makefile.am +++ b/src/test/Makefile.am @@ -1,9 +1,9 @@ MAINTAINERCLEANFILES = $(srcdir)/Makefile.in CLEANFILES = test*.log test*.trs \ - test2.out test4.out test4err.out key.pem cert.pem + test2.out test4.out test4err.out key.pem cert.pem test6.out -TESTS = test1.sh test2.sh test3.sh test4.sh test5.sh +TESTS = test1.sh test2.sh test3.sh test4.sh test5.sh test6.sh EXTRA_DIST = $(TESTS) \ - datafile datafile2 updatefile datafile3 datafile4 datafile5 + datafile datafile2 updatefile datafile3 datafile4 datafile5 datafile6 diff --git a/src/test/Makefile.in b/src/test/Makefile.in index fa6167e..78b3759 100644 --- a/src/test/Makefile.in +++ b/src/test/Makefile.in @@ -465,11 +465,11 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MAINTAINERCLEANFILES = $(srcdir)/Makefile.in CLEANFILES = test*.log test*.trs \ - test2.out test4.out test4err.out key.pem cert.pem + test2.out test4.out test4err.out key.pem cert.pem test6.out -TESTS = test1.sh test2.sh test3.sh test4.sh test5.sh +TESTS = test1.sh test2.sh test3.sh test4.sh test5.sh test6.sh EXTRA_DIST = $(TESTS) \ - datafile datafile2 updatefile datafile3 datafile4 datafile5 + datafile datafile2 updatefile datafile3 datafile4 datafile5 datafile6 all: all-am @@ -694,6 +694,13 @@ test5.sh.log: test5.sh --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) +test6.sh.log: test6.sh + @p='test6.sh'; \ + b='test6.sh'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) .test.log: @p='$<'; \ $(am__set_b); \ diff --git a/src/test/datafile6 b/src/test/datafile6 new file mode 100644 index 0000000..8ed7df6 --- /dev/null +++ b/src/test/datafile6 @@ -0,0 +1,26 @@ +\" A +\001 A +\". A +a\". A +\"a. A +a\"a. A +a\"a\". A +\!\"a\". A +\001. A +a\001. A +\001a. A +a\001a. A +a\001\001\001a. A +a\001a\001a\001. A +\".\". A +a\".a\". A +\"a.\"a. A +a\"a.a\"a. A +a\"a\".a\"a\". A +\!\"a\".\!\"a\". A +\001.\001. A +a\001.a\001. A +\001a.\001a. A +a\001a.a\001a. A +a\001\001\001a.a\001\001\001a. A +a\001a\001a\001.a\001a\001a\001. A diff --git a/src/test/test6.sh b/src/test/test6.sh new file mode 100755 index 0000000..4eea79e --- /dev/null +++ b/src/test/test6.sh @@ -0,0 +1,7 @@ +#!/bin/sh -xe + +test "$TEST_DNSPERF_WITH_NETWORK" = "1" || exit 0 + +../dnsperf -vvv -d "$srcdir/datafile6" -s 1.1.1.1 >test6.out + +grep "NXDOMAIN 26" test6.out |