test: fivebyeight

master
Sean McBride 3 years ago
parent 6a7d2c3c05
commit b346cd1cce

@ -13,4 +13,4 @@ debug:
SLEDGE_DISABLE_PREEMPTION=true SLEDGE_NWORKERS=1 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 "@5x8.pnm" "${HOSTNAME}:10000"
curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@5x8.pnm" "${HOSTNAME}:10000/gocr"

@ -23,7 +23,7 @@ experiment_client() {
local result
for ((i = 0; i < total_count; i++)); do
result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@5x8.pnm" "$hostname:10000" 2> /dev/null)
result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@5x8.pnm" "$hostname:10000/gocr" 2> /dev/null)
if [[ "$result" == "$expected_result" ]]; then
((success_count++))
else

@ -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"
}
]
}
]
]
Loading…
Cancel
Save