unbound/testdata/pymod.tdir/pymod.post
wouter 8ba25b126a tests in tdir format.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@4264 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-07-06 13:27:30 +00:00

21 lines
454 B
Plaintext

# #-- pymod.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
PRE="../.."
. ../common.sh
# if no python; exit
if grep "define WITH_PYTHONMODULE 1" $PRE/config.h; then
echo "have python module"
else
echo "no python module"
exit 0
fi
kill_pid $FWD_PID
kill_pid $UNBOUND_PID