Skip to content

Commit

Permalink
Merge pull request #5 from ocfox/wasm-apps_test
Browse files Browse the repository at this point in the history
fix wasm-apps test
  • Loading branch information
yunwei37 committed Feb 7, 2023
2 parents bf2199a + c0c87e1 commit ab645f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
8 changes: 7 additions & 1 deletion test/wasm-apps/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@
-Wl,--export=process_event \
-Wl,--strip-all,--no-entry \
-Wl,--allow-undefined \
-o a.wasm main.c
-o binding.wasm binding.c

if [ -f "binding.wasm" ]; then
echo "build binding.wasm success"
else
echo "build binding.wasm fail"
fi

0 comments on commit ab645f7

Please sign in to comment.