4 NEED_SPLINT='00-lint.tdir'
5 NEED_DOXYGEN='01-doc.tdir'
6 NEED_XXD='fwd_compress_c00c.tdir fwd_zero.tdir'
7 NEED_NC='fwd_compress_c00c.tdir fwd_zero.tdir'
8 NEED_CURL='06-ianaports.tdir root_anchor.tdir'
9 NEED_WHOAMI='07-confroot.tdir'
10 NEED_IPV6='fwd_ancil.tdir fwd_tcp_tc6.tdir stub_udp6.tdir edns_cache.tdir'
11 NEED_NOMINGW='tcp_sigpipe.tdir 07-confroot.tdir 08-host-lib.tdir fwd_ancil.tdir'
12 NEED_DNSCRYPT_PROXY='dnscrypt_queries.tdir dnscrypt_queries_chacha.tdir'
14 # test if dig and ldns-testns are available.
16 test_tool_avail "ldns-testns"
18 # test for ipv6, uses streamtcp peculiarity.
19 if ./streamtcp -f ::1 2>&1 | grep "not supported" >/dev/null 2>&1; then
25 # test mingw. no signals and so on.
26 if uname | grep MINGW >/dev/null; then
32 # stop tests from notifying systemd, if that is compiled in.
33 export -n NOTIFY_SOCKET
36 sh ../testcode/mini_tdir.sh clean
38 for test in `ls -d *.tdir`; do
40 skip_if_in_list $test "$NEED_SPLINT" "splint"
41 skip_if_in_list $test "$NEED_DOXYGEN" "doxygen"
42 skip_if_in_list $test "$NEED_CURL" "curl"
43 skip_if_in_list $test "$NEED_XXD" "xxd"
44 skip_if_in_list $test "$NEED_NC" "nc"
45 skip_if_in_list $test "$NEED_WHOAMI" "whoami"
46 skip_if_in_list $test "$NEED_DNSCRYPT_PROXY" "dnscrypt-proxy"
48 if echo $NEED_IPV6 | grep $test >/dev/null; then
49 if test "$HAVE_IPV6" = no; then
53 if echo $NEED_NOMINGW | grep $test >/dev/null; then
54 if test "$HAVE_MINGW" = yes; then
58 if test $SKIP -eq 0; then
60 sh ../testcode/mini_tdir.sh -a ../.. exe $test
65 sh ../testcode/mini_tdir.sh report