diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-03-31 07:37:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-03-31 07:37:43 +0000 |
commit | 759ea409fe884c184d51f81c73523015a468a1eb (patch) | |
tree | df4ba82f4118a4ac46c34a262f87f8ec26fdd240 /src/test/test5.sh | |
parent | Adding upstream version 2.5.0+debian. (diff) | |
download | dnsperf-759ea409fe884c184d51f81c73523015a468a1eb.tar.xz dnsperf-759ea409fe884c184d51f81c73523015a468a1eb.zip |
Adding upstream version 2.5.2.upstream/2.5.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/test5.sh')
-rwxr-xr-x | src/test/test5.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/test/test5.sh b/src/test/test5.sh new file mode 100755 index 0000000..40c9b31 --- /dev/null +++ b/src/test/test5.sh @@ -0,0 +1,32 @@ +#!/bin/sh -xe + +test "$TEST_DNSPERF_WITH_NETWORK" = "1" || exit 0 + +dumdumd=`which dumdumd` + +if [ -n "$dumdumd" ]; then + $dumdumd 127.0.0.1 5353 -r -D 100 & + pid="$!" + ../dnsperf -s 127.0.0.1 -p 5353 -d "$srcdir/datafile" -t 2 -l 2 -Q 10 -m tcp + kill "$pid" + + $dumdumd 127.0.0.1 5353 -r -D 10 & + pid="$!" + ../dnsperf -s 127.0.0.1 -p 5353 -d "$srcdir/datafile" -t 2 -l 10 -Q 100 -m tcp + kill "$pid" + + rm -f key.pem cert.pem + openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj "/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd" + + $dumdumd 127.0.0.1 5353 -r -T -D 100 & + pid="$!" + ../dnsperf -s 127.0.0.1 -p 5353 -d "$srcdir/datafile" -t 2 -l 2 -Q 10 -m dot + kill "$pid" + + $dumdumd 127.0.0.1 5353 -r -T -D 10 & + pid="$!" + ../dnsperf -s 127.0.0.1 -p 5353 -d "$srcdir/datafile" -t 2 -l 10 -Q 100 -m dot + kill "$pid" + + pkill -9 dumdumd || true +fi |