Debian Codegraph @

testdata/fast_reload_most_options.tdir/fast_reload_most_options.test

raw
1 # #-- fast_reload_most_options.test --#
2 # source the master var file when it's there
3 [ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
4 # use .tpkg.var.test for in test variable passing
5 [ -f .tpkg.var.test ] && source .tpkg.var.test
6
7 PRE="../.."
8 . ../common.sh
9
10 echo "> unbound-control status"
11 $PRE/unbound-control -c ub.conf status
12 if test $? -ne 0; then
13 echo "wrong exit value."
14 exit 1
15 else
16 echo "exit value: OK"
17 fi
18
19 for i in {1..10}
20 do
21
22 echo "> unbound-control fast_reload +vvdp ($i)"
23 $PRE/unbound-control -c ub.conf fast_reload +vvdp 2>&1 | tee output
24 if test $? -ne 0; then
25 echo "wrong exit value."
26 exit 1
27 else
28 echo "exit value: OK"
29 fi
30 wait_logfile unbound.log "start fast reload thread" 60
31 wait_logfile unbound.log "stop fast reload thread" 60
32 wait_logfile unbound.log "joined with fastreload thread" 60
33
34 if grep "ok" output; then
35 echo "OK"
36 else
37 echo "output not correct"
38 exit 1
39 fi
40 done
41
42 exit 0