Add tests for the Revive WASM version (#147)

This commit is contained in:
Sebastian Miasojed
2025-01-10 09:12:43 +01:00
committed by GitHub
parent f49d145e9a
commit d7d60da6f1
7 changed files with 199 additions and 18 deletions
+5 -3
View File
@@ -1,4 +1,4 @@
.PHONY: install format test test-solidity test-cli test-integration test-workspace clean docs docs-build
.PHONY: install format test test-solidity test-cli test-integration test-workspace test-wasm clean docs docs-build
RUSTFLAGS_EMSCRIPTEN := \
-C link-arg=-sEXPORTED_FUNCTIONS=_main,_free,_malloc \
@@ -25,9 +25,11 @@ install-bin:
install-npm:
npm install && npm fund
install-wasm:
install-wasm: install-npm
RUSTFLAGS='$(RUSTFLAGS_EMSCRIPTEN)' cargo build --target wasm32-unknown-emscripten -p revive-solidity --release --no-default-features
npm install
test-wasm: install-wasm
npm run test:wasm
# install-revive: Build and install to the directory specified in REVIVE_INSTALL_DIR
ifeq ($(origin REVIVE_INSTALL_DIR), undefined)