Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix wasm-apps test #5

Merged
merged 1 commit into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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