summaryrefslogtreecommitdiff
path: root/testdata/dnscrypt_queries.tdir/dnscrypt_queries.post
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/dnscrypt_queries.tdir/dnscrypt_queries.post')
-rw-r--r--testdata/dnscrypt_queries.tdir/dnscrypt_queries.post20
1 files changed, 20 insertions, 0 deletions
diff --git a/testdata/dnscrypt_queries.tdir/dnscrypt_queries.post b/testdata/dnscrypt_queries.tdir/dnscrypt_queries.post
new file mode 100644
index 000000000000..b61480616892
--- /dev/null
+++ b/testdata/dnscrypt_queries.tdir/dnscrypt_queries.post
@@ -0,0 +1,20 @@
+# #-- dnscrypt_queries.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 dnscrypt; exit
+if grep "define USE_DNSCRYPT 1" $PRE/config.h; then
+ echo "have dnscrypt"
+else
+ echo "no dnscrypt"
+ exit 0
+fi
+
+kill_pid $FWD_PID
+kill_pid $UNBOUND_PID
+kill_pid $PROXY_PID