Merge pull request #4767 from roc-lang/wasm_interp_repl_test

Replace Wasmer with roc_wasm_interp
This commit is contained in:
Folkert de Vries 2022-12-18 20:44:58 +01:00 committed by GitHub
commit a18197347b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 531 additions and 1411 deletions

View file

@ -3,9 +3,6 @@
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
set -euxo pipefail
# Test failures will always point at the _start function
# Make sure to look at the rest of the stack trace!
# Zig will try to run the test binary it produced, but since your OS doesn't know how to
# run Wasm binaries natively, we need to provide a Wasm interpreter as a "test command".
# For non-native binaries, Zig test needs a "test command" it can use
cargo build --locked --release -p roc_wasm_interp
zig test -target wasm32-wasi-musl -O ReleaseFast src/main.zig --test-cmd ../../../../target/release/roc_wasm_interp --test-cmd-bin