]> arthur.barton.de Git - bup.git/commitdiff
test-web: check that static/styles.css can be retrieved
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 29 Jan 2020 20:40:31 +0000 (21:40 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 2 Feb 2020 18:15:09 +0000 (12:15 -0600)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
t/test-web.sh

index 1e10adaa7d394055c3705cd0d1bedb417638683a..74e0f2bd4b3d6207622b1114d74614706107f3ea 100755 (executable)
@@ -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"