aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/testcode/do-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'external/unbound/testcode/do-tests.sh')
m---------external/unbound0
-rwxr-xr-xexternal/unbound/testcode/do-tests.sh63
2 files changed, 0 insertions, 63 deletions
diff --git a/external/unbound b/external/unbound
new file mode 160000
+Subproject 193bdc4ee3fe2b0d17e547e86512528c2614483
diff --git a/external/unbound/testcode/do-tests.sh b/external/unbound/testcode/do-tests.sh
deleted file mode 100755
index e356d4fc3..000000000
--- a/external/unbound/testcode/do-tests.sh
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/usr/bin/env bash
-. testdata/common.sh
-
-NEED_SPLINT='00-lint.tpkg'
-NEED_DOXYGEN='01-doc.tpkg'
-NEED_XXD='fwd_compress_c00c.tpkg fwd_zero.tpkg'
-NEED_NC='fwd_compress_c00c.tpkg fwd_zero.tpkg'
-NEED_CURL='06-ianaports.tpkg root_anchor.tpkg'
-NEED_WHOAMI='07-confroot.tpkg'
-NEED_IPV6='fwd_ancil.tpkg fwd_tcp_tc6.tpkg stub_udp6.tpkg edns_cache.tpkg'
-NEED_NOMINGW='tcp_sigpipe.tpkg 07-confroot.tpkg 08-host-lib.tpkg fwd_ancil.tpkg'
-NEED_DNSCRYPT_PROXY='dnscrypt_queries.tpkg'
-
-# test if dig and ldns-testns are available.
-test_tool_avail "dig"
-test_tool_avail "ldns-testns"
-
-# test for ipv6, uses streamtcp peculiarity.
-if ./streamtcp -f ::1 2>&1 | grep "not supported" >/dev/null 2>&1; then
- HAVE_IPV6=no
-else
- HAVE_IPV6=yes
-fi
-
-# test mingw. no signals and so on.
-if uname | grep MINGW >/dev/null; then
- HAVE_MINGW=yes
-else
- HAVE_MINGW=no
-fi
-
-cd testdata;
-sh ../testcode/mini_tpkg.sh clean
-rm -f .perfstats.txt
-for test in `ls *.tpkg`; do
- SKIP=0
- skip_if_in_list $test "$NEED_SPLINT" "splint"
- skip_if_in_list $test "$NEED_DOXYGEN" "doxygen"
- skip_if_in_list $test "$NEED_CURL" "curl"
- skip_if_in_list $test "$NEED_XXD" "xxd"
- skip_if_in_list $test "$NEED_NC" "nc"
- skip_if_in_list $test "$NEED_WHOAMI" "whoami"
- skip_if_in_list $test "$NEED_DNSCRYPT_PROXY" "dnscrypt-proxy"
-
- if echo $NEED_IPV6 | grep $test >/dev/null; then
- if test "$HAVE_IPV6" = no; then
- SKIP=1;
- fi
- fi
- if echo $NEED_NOMINGW | grep $test >/dev/null; then
- if test "$HAVE_MINGW" = yes; then
- SKIP=1;
- fi
- fi
- if test $SKIP -eq 0; then
- echo $test
- sh ../testcode/mini_tpkg.sh -a ../.. exe $test
- else
- echo "skip $test"
- fi
-done
-sh ../testcode/mini_tpkg.sh report
-cat .perfstats.txt