]> arthur.barton.de Git - bup.git/blobdiff - t/test-web.sh
web: retrieve paths exactly as presented
[bup.git] / t / test-web.sh
index 842b6e9cc900aee6b00be6ada5e55f9fb84d06f1..dd46194ab9ac8e178e6de4aa3048a56e6d8cb3a3 100755 (executable)
@@ -46,17 +46,18 @@ if test -n "$run_test"; then
     WVSTART 'web'
     WVPASS bup init
     WVPASS mkdir src
-    WVPASS echo excitement > src/data
+    WVPASS echo 'éxcitement' > src/data
     WVPASS bup index src
-    WVPASS bup save -n src --strip src
+    WVPASS bup save -n 'éxcitement' --strip src
 
     "$TOP/bup" web unix://socket &
     web_pid=$!
     wait-for-server-start
 
-    WVPASS curl --unix-socket ./socket http://localhost/src/latest/data > result
+    WVPASS curl --unix-socket ./socket \
+           'http://localhost/%C3%A9xcitement/latest/data' > result
 
-    WVPASSEQ excitement "$(cat result)"
+    WVPASSEQ 'éxcitement' "$(cat result)"
     WVPASS kill -s TERM "$web_pid"
     WVPASS wait "$web_pid"
 fi