Skip unsupported tests. Fixup streamtcp for more portability.

git-svn-id: file:///svn/unbound/trunk@1376 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2008-11-25 14:17:14 +00:00
parent b1ed30d5f4
commit ea1f00ebad
3 changed files with 13 additions and 2 deletions

View file

@ -1,5 +1,7 @@
25 November 2008: Wouter
- configure complains when --without-ssl is given (bug #220).
- skip unsupported feature tests on vista/mingw.
- fixup testcode/streamtcp to work on vista/mingw.
24 November 2008: Wouter
- document that the user of the server daemon needs read privileges

View file

@ -8,6 +8,7 @@ NEED_NC='fwd_compress_c00c.tpkg'
NEED_CURL='06-ianaports.tpkg'
NEED_WHOAMI='07-confroot.tpkg'
NEED_IPV6='fwd_ancil.tpkg fwd_tcp_tc6.tpkg'
NEED_NOMINGW='tcp_sigpipe.tpkg 07-confroot.tpkg 08-host-lib.tpkg fwd_ancil.tpkg'
# test for ipv6, uses streamptcp peculiarity.
if ./streamtcp -f ::1 2>&1 | grep "not supported" >/dev/null 2>&1; then
@ -16,6 +17,13 @@ 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
@ -61,8 +69,8 @@ for test in `ls *.tpkg`; do
SKIP=1;
fi
fi
if echo $NEED_JOBCONTROL | grep $test >/dev/null; then
if test "$JOBCONTROL" = no; then
if echo $NEED_NOMINGW | grep $test >/dev/null; then
if test "$HAVE_MINGW" = yes; then
SKIP=1;
fi
fi

View file

@ -68,6 +68,7 @@ open_svr(const char* svr, int udp)
socklen_t addrlen;
int fd = -1;
/* svr can be ip@port */
memset(&addr, 0, sizeof(addr));
if(!extstrtoaddr(svr, &addr, &addrlen)) {
printf("fatal: bad server specs '%s'\n", svr);
exit(1);