]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Add duration variable for speed_local.test.
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Mon, 30 Jan 2023 10:33:58 +0000 (11:33 +0100)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Mon, 30 Jan 2023 10:33:58 +0000 (11:33 +0100)
doc/Changelog
testdata/speed_local.tdir/speed_local.test

index 516b69a49fb4f8f14db5baf0da391a0936ebe8f7..fa41e5128a87b1ed67795d83f0954d551d5ce504 100644 (file)
@@ -1,3 +1,6 @@
+30 January 2023: George
+       - Add duration variable for speed_local.test.
+
 26 January 2023: Wouter
        - Fix acx_nlnetlabs.m4 for -Wstrict-prototypes.
 
index 684b3c52251bb52cb42d84ede502a899b8d385c5..6ad1ba737355c9fb9a907e7488a37057fd8f62b1 100644 (file)
@@ -9,8 +9,11 @@ PRE="../.."
 get_make
 (cd $PRE; $MAKE perf)
 
+# seconds per test
+dur=1
+
 echo "> perf version.server"
-$PRE/perf -d 1 -a "version.server CH TXT -" 127.0.0.1@$UNBOUND_PORT 2>&1 | 
+$PRE/perf -d $dur -a "version.server CH TXT -" 127.0.0.1@$UNBOUND_PORT 2>&1 | 
 tee outfile
 
 echo -n "version-server        " > line.txt
@@ -25,7 +28,7 @@ fi
 
 
 echo "> perf localhost"
-$PRE/perf -d 1 -a "localhost IN A -" 127.0.0.1@$UNBOUND_PORT 2>&1 | 
+$PRE/perf -d $dur -a "localhost IN A -" 127.0.0.1@$UNBOUND_PORT 2>&1 | 
 tee outfile
 
 echo -n "localhost-addr        " >> line.txt