summaryrefslogtreecommitdiff
path: root/testdata/dnstap.tdir/dnstap.post
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/dnstap.tdir/dnstap.post')
-rw-r--r--testdata/dnstap.tdir/dnstap.post16
1 files changed, 16 insertions, 0 deletions
diff --git a/testdata/dnstap.tdir/dnstap.post b/testdata/dnstap.tdir/dnstap.post
new file mode 100644
index 000000000000..6744b4b618ce
--- /dev/null
+++ b/testdata/dnstap.tdir/dnstap.post
@@ -0,0 +1,16 @@
+# #-- dnstap.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 USE_DNSTAP 1" $PRE/config.h; then echo test enabled; else echo test skipped; exit 0; fi
+kill_pid $DNSTAP_SOCKET_PID
+kill_pid $FWD_PID
+kill $UNBOUND_PID
+kill $UNBOUND_PID >/dev/null 2>&1
+cat unbound.log
+exit 0