diff --git a/tests/gocr/handwriting/Makefile b/tests/gocr/handwriting/Makefile index 345f6d1..1e8c53d 100644 --- a/tests/gocr/handwriting/Makefile +++ b/tests/gocr/handwriting/Makefile @@ -13,4 +13,4 @@ debug: LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} gdb ${SLEDGE_BINARY_DIR}/sledgert --eval-command="run spec.json" client: - curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@handwrt1.pnm" "${HOSTNAME}:10000" + curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@handwrt1.pnm" "${HOSTNAME}:10000/gocr" diff --git a/tests/gocr/handwriting/run.sh b/tests/gocr/handwriting/run.sh index f24a0df..0d805e9 100755 --- a/tests/gocr/handwriting/run.sh +++ b/tests/gocr/handwriting/run.sh @@ -22,7 +22,7 @@ experiment_client() { local -ir total_count=10 for ((i = 0; i < total_count; i++)); do - result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@handwrt1.pnm" "$hostname:10000" 2> /dev/null) + result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@handwrt1.pnm" "$hostname:10000/gocr" 2> /dev/null) if [[ "$result" == "$expected_result" ]]; then ((success_count++)) else diff --git a/tests/gocr/handwriting/spec.json b/tests/gocr/handwriting/spec.json index d9049da..6b2e815 100644 --- a/tests/gocr/handwriting/spec.json +++ b/tests/gocr/handwriting/spec.json @@ -1,12 +1,16 @@ [ { - "name": "gocr", - "path": "gocr.wasm.so", + "name": "gwu", "port": 10000, - "expected-execution-us": 5000, - "relative-deadline-us": 36000, - "http-req-size": 1024000, - "http-resp-size": 1024000, - "http-resp-content-type": "text/plain" + "routes": [ + { + "route": "/gocr", + "path": "gocr.wasm.so", + "expected-execution-us": 5000, + "relative-deadline-us": 36000, + "http-resp-size": 1024000, + "http-resp-content-type": "text/plain" + } + ] } -] +] \ No newline at end of file