WVPASS cd "$tmpdir"
-# FIXME: add WVSKIP
if test -z "$(type -p curl)"; then
- WVSTART 'curl does not appear to be installed; skipping test'
+ WVSKIP 'curl does not appear to be installed; skipping test'
exit 0
fi
WVPASS bup-cfg-py -c "import socket as s; s.socket(s.AF_UNIX).bind('socket')"
curl -s --unix-socket ./socket http://localhost/foo
if test $? -ne 7; then
- WVSTART 'curl does not appear to support --unix-socket; skipping test'
+ WVSKIP 'curl does not appear to support --unix-socket; skipping test'
exit 0
fi
if ! bup-python -c 'import tornado' 2> /dev/null; then
- WVSTART 'unable to import tornado; skipping test'
+ WVSKIP 'unable to import tornado; skipping test'
exit 0
fi
WVPASS bup index src
WVPASS bup save -n '¡excitement!' --strip src
-"$TOP/bup" web unix://socket &
+"$TOP/bup" web unix://socket </dev/null >bup-web.log 2>&1 &
web_pid=$!
+# output the log if something fails
+trap 'cat bup-web.log' EXIT
wait-for-server-start
WVPASS curl --unix-socket ./socket \
WVPASS kill -s TERM "$web_pid"
WVPASS wait "$web_pid"
+trap - EXIT
WVPASS rm -r "$tmpdir"