diff --git a/applications/Makefile b/applications/Makefile index 202a9fc..332a346 100644 --- a/applications/Makefile +++ b/applications/Makefile @@ -122,3 +122,6 @@ scratch_storage_delete.install: ../runtime/bin/scratch_storage_delete.wasm.so .PHONY: scratch_storage_upsert.install scratch_storage_upsert.install: ../runtime/bin/scratch_storage_upsert.wasm.so + +.PHONY: depth_to_xyz.install +depth_to_xyz.install: ../runtime/bin/depth_to_xyz.wasm.so diff --git a/applications/wasm_apps b/applications/wasm_apps index 0b9f67d..726b080 160000 --- a/applications/wasm_apps +++ b/applications/wasm_apps @@ -1 +1 @@ -Subproject commit 0b9f67d75fd9dab652e1995e7adf91806080523b +Subproject commit 726b0804777ef346308f9dfcdf928032c28226a8 diff --git a/tests/cmu-sod/.gitignore b/tests/cmu-sod/.gitignore new file mode 100644 index 0000000..019d491 --- /dev/null +++ b/tests/cmu-sod/.gitignore @@ -0,0 +1 @@ +out.png diff --git a/tests/cmu-sod/0_depth.png b/tests/cmu-sod/0_depth.png new file mode 100644 index 0000000..242a89b Binary files /dev/null and b/tests/cmu-sod/0_depth.png differ diff --git a/tests/cmu-sod/0_rgb.png b/tests/cmu-sod/0_rgb.png new file mode 100644 index 0000000..84da58a Binary files /dev/null and b/tests/cmu-sod/0_rgb.png differ diff --git a/tests/cmu-sod/Makefile b/tests/cmu-sod/Makefile new file mode 100644 index 0000000..a0ca4b5 --- /dev/null +++ b/tests/cmu-sod/Makefile @@ -0,0 +1,20 @@ +SLEDGE_BINARY_DIR=../../runtime/bin +HOSTNAME=localhost + +default: run + +clean: + rm -rf res/* + +run: + LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} ${SLEDGE_BINARY_DIR}/sledgert spec.json + +debug: + SLEDGE_DISABLE_PREEMPTION=true SLEDGE_NWORKERS=1 LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} gdb ${SLEDGE_BINARY_DIR}/sledgert --eval-command="run spec.json" + +valgrind: + SLEDGE_DISABLE_PREEMPTION=true SLEDGE_NWORKERS=1 LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} valgrind --leak-check=full --max-stackframe=11150456 --run-libc-freeres=no --run-cxx-freeres=no ${SLEDGE_BINARY_DIR}/sledgert spec.json + +.PHONY: client +client: + cat ./0_depth.png | http "${HOSTNAME}:10000/depth_to_xyz" > ./out.png diff --git a/tests/cmu-sod/expected_result.png b/tests/cmu-sod/expected_result.png new file mode 100644 index 0000000..48198ea Binary files /dev/null and b/tests/cmu-sod/expected_result.png differ diff --git a/tests/cmu-sod/spec.json b/tests/cmu-sod/spec.json new file mode 100644 index 0000000..253a3d6 --- /dev/null +++ b/tests/cmu-sod/spec.json @@ -0,0 +1,18 @@ +[ + { + "name": "cmu", + "port": 10000, + "replenishment-period-us": 0, + "max-budget-us": 0, + "routes": [ + { + "route": "/depth_to_xyz", + "path": "depth_to_xyz.wasm.so", + "expected-execution-us": 5000, + "relative-deadline-us": 360000, + "http-resp-size": 5335057, + "http-resp-content-type": "img/png" + } + ] + } +]