]> arthur.barton.de Git - bup.git/blobdiff - t/test-web.sh
get: adjust for python 3 and test there
[bup.git] / t / test-web.sh
index 02d17c659f8f0cd023ea53474ddc01dc895d97cb..74e0f2bd4b3d6207622b1114d74614706107f3ea 100755 (executable)
@@ -42,7 +42,7 @@ if test $? -ne 7; then
     run_test=''
 fi
 
-if ! python -c 'import tornado' 2> /dev/null; then
+if ! bup-python -c 'import tornado' 2> /dev/null; then
     WVSTART 'unable to import tornado; skipping test'
     run_test=''
 fi
@@ -61,6 +61,8 @@ if test -n "$run_test"; then
 
     WVPASS curl --unix-socket ./socket \
            'http://localhost/%C2%A1excitement%21/latest/data' > result
+    WVPASSEQ "$(curl --unix-socket ./socket http://localhost/static/styles.css)" \
+             "$(cat "$TOP/lib/web/static/styles.css")"
 
     WVPASSEQ '¡excitement!' "$(cat result)"
     WVPASS kill -s TERM "$web_pid"