mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
16 lines
885 B
Bash
Executable file
16 lines
885 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# 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".
|
|
zig test -target wasm32-wasi-musl -O ReleaseFast src/main.zig --test-cmd ~/roc/target/release/roc_wasm_interp --test-cmd-bin
|
|
|
|
hyperfine --warmup 1 \
|
|
'zig test -target wasm32-wasi-musl -O ReleaseFast src/main.zig --test-cmd wasmer --test-cmd-bin' \
|
|
'zig test -target wasm32-wasi-musl -O ReleaseFast src/main.zig --test-cmd wasm3 --test-cmd-bin' \
|
|
'zig test -target wasm32-wasi-musl -O ReleaseFast src/main.zig --test-cmd ~/roc/target/release/roc_wasm_interp --test-cmd-bin'
|