5 if test "x$TEST_OUTPUT_FILE" = "x"
7 TEST_OUTPUT_FILE
=/dev
/null
10 # /bin/echo is a little more likely to support -n than sh's builtin echo,
11 # printf is even more likely
12 if test "`printf %s hello 2>&1`" = "hello"
24 if test "$TEST_OUTPUT_FILE" != "/dev/null"
26 touch "$TEST_OUTPUT_FILE" ||
exit 1
31 T
=`echo "$0" | sed -e 's/test.sh$//'`
32 if test -x "$T/test-init"
38 EVENT_NOKQUEUE
=yes; export EVENT_NOKQUEUE
39 EVENT_NODEVPOLL
=yes; export EVENT_NODEVPOLL
40 EVENT_NOPOLL
=yes; export EVENT_NOPOLL
41 EVENT_NOSELECT
=yes; export EVENT_NOSELECT
42 EVENT_NOEPOLL
=yes; export EVENT_NOEPOLL
43 unset EVENT_EPOLL_USE_CHANGELIST
44 EVENT_NOEVPORT
=yes; export EVENT_NOEVPORT
45 EVENT_NOWIN32
=yes; export EVENT_NOWIN32
50 echo "$@" >>"$TEST_OUTPUT_FILE"
55 echo "$@" >>"$TEST_OUTPUT_FILE"
60 if $TEST_DIR/test-init
2>>"$TEST_OUTPUT_FILE" ;
64 announce Skipping
test
68 announce_n
" test-eof: "
69 if $TEST_DIR/test-eof
>>"$TEST_OUTPUT_FILE" ;
76 announce_n
" test-weof: "
77 if $TEST_DIR/test-weof
>>"$TEST_OUTPUT_FILE" ;
84 announce_n
" test-time: "
85 if $TEST_DIR/test-time
>>"$TEST_OUTPUT_FILE" ;
92 announce_n
" test-changelist: "
93 if $TEST_DIR/test-changelist
>>"$TEST_OUTPUT_FILE" ;
100 test -x $TEST_DIR/regress ||
return
101 announce_n
" regress: "
102 if test "$TEST_OUTPUT_FILE" = "/dev/null" ;
104 $TEST_DIR/regress
--quiet
106 $TEST_DIR/regress
>>"$TEST_OUTPUT_FILE"
117 announce
"Running tests:"
119 # Need to do this by hand?
137 EVENT_EPOLL_USE_CHANGELIST
=yes; export EVENT_EPOLL_USE_CHANGELIST
138 announce
"EPOLL (changelist)"
142 unset EVENT_NODEVPOLL
161 if test "$FAILED" = "yes"; then