- For PR #93: unit test for dynlib module.

This commit is contained in:
W.C.A. Wijngaards
2020-05-19 15:49:08 +02:00
parent 711c0548f0
commit f37242566b
11 changed files with 247 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# #-- dynlibmod.post --#
# source the master var file when it's there
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
# source the test var file when it's there
[ -f .tpkg.var.test ] && source .tpkg.var.test
#
# do your teardown here
. ../common.sh
PRE="../.."
if grep "define WITH_DYNLIBMODULE 1" $PRE/config.h; then echo test enabled; else echo test skipped; exit 0; fi
kill_pid $FWD_PID
kill $UNBOUND_PID
kill $UNBOUND_PID >/dev/null 2>&1
cat unbound.log
exit 0