diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2025-04-25 14:41:24 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2025-04-25 14:41:24 +0000 |
| commit | 44bab727dfe28451b777dc9e47db4f748b709182 (patch) | |
| tree | b8abab888105843c7f120357a1e010bfd6d5ef8c /testdata/fast_reload_thread.tdir/fast_reload_thread.test | |
| parent | 0a6d797cf6eb751d7eb613900cd19803e05d905f (diff) | |
Diffstat (limited to 'testdata/fast_reload_thread.tdir/fast_reload_thread.test')
| -rw-r--r-- | testdata/fast_reload_thread.tdir/fast_reload_thread.test | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testdata/fast_reload_thread.tdir/fast_reload_thread.test b/testdata/fast_reload_thread.tdir/fast_reload_thread.test new file mode 100644 index 000000000000..d2ef258802f7 --- /dev/null +++ b/testdata/fast_reload_thread.tdir/fast_reload_thread.test @@ -0,0 +1,38 @@ +# #-- fast_reload_thread.test --# +# source the master var file when it's there +[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master +# use .tpkg.var.test for in test variable passing +[ -f .tpkg.var.test ] && source .tpkg.var.test + +PRE="../.." +. ../common.sh + +echo "> unbound-control status" +$PRE/unbound-control -c ub.conf status +if test $? -ne 0; then + echo "wrong exit value." + exit 1 +else + echo "exit value: OK" +fi + +echo "> unbound-control fast_reload" +$PRE/unbound-control -c ub.conf fast_reload 2>&1 | tee output +if test $? -ne 0; then + echo "wrong exit value." + exit 1 +else + echo "exit value: OK" +fi +wait_logfile unbound.log "start fast reload thread" 60 +wait_logfile unbound.log "stop fast reload thread" 60 +wait_logfile unbound.log "joined with fastreload thread" 60 + +if grep "ok" output; then + echo "OK" +else + echo "output not correct" + exit 1 +fi + +exit 0 |
