diff --git a/Makefile b/Makefile index 9d7a794..ab94581 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,7 @@ test: ## run tests quickly with ctest sudo mkdir -p /opt/wasi-sdk/ && sudo mv wasi-sdk-17.0/* /opt/wasi-sdk/ test-wasm: /opt/wasi-sdk - make -C test/wasm-apps + cd test/wasm-apps && ./build.sh coverage: ## check code coverage quickly GCC rm -rf build/ diff --git a/test/wasm-apps/build.sh b/test/wasm-apps/build.sh index 9884a9e..5d4a508 100755 --- a/test/wasm-apps/build.sh +++ b/test/wasm-apps/build.sh @@ -12,4 +12,10 @@ -Wl,--export=process_event \ -Wl,--strip-all,--no-entry \ -Wl,--allow-undefined \ - -o a.wasm main.c \ No newline at end of file + -o binding.wasm binding.c + +if [ -f "binding.wasm" ]; then + echo "build binding.wasm success" +else + echo "build binding.wasm fail" +fi