aboutsummaryrefslogtreecommitdiff
path: root/testdata/dnscrypt_cert.tdir/precheck.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/dnscrypt_cert.tdir/precheck.sh')
-rw-r--r--testdata/dnscrypt_cert.tdir/precheck.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/testdata/dnscrypt_cert.tdir/precheck.sh b/testdata/dnscrypt_cert.tdir/precheck.sh
new file mode 100644
index 000000000000..00fa4bc76067
--- /dev/null
+++ b/testdata/dnscrypt_cert.tdir/precheck.sh
@@ -0,0 +1,16 @@
+# dnscrypt precheck.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
+
+# if no xchacha20 support in unbound; exit
+if grep "define USE_DNSCRYPT_XCHACHA20 1" $PRE/config.h; then
+ xchacha20=1
+else
+ xchacha20=0
+fi