forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmiri-provenance-test.sh
More file actions
executable file
·26 lines (21 loc) · 1.06 KB
/
Copy pathmiri-provenance-test.sh
File metadata and controls
executable file
·26 lines (21 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# This is a small script to assist in running the `pulley_provenance_test` test
# located at `tests/all/pulley.rs`. The goal of this script is to use the native
# host to compile the wasm module in question to avoid needing to run Cranelift
# under MIRI. That enables much faster iteration on the test here.
set -ex
compile() {
cargo run --no-default-features --features compile,pulley,wat,gc-drc,component-model,component-model-async \
compile --target pulley64 $1 \
-o ${1%.wat}.cwasm \
-O memory-reservation=$((1 << 20)) \
-O memory-guard-size=0 \
-O signals-based-traps=n \
-W function-references,component-model-async,component-model-async-stackful,component-model-async-builtins,component-model-error-context
}
compile ./tests/all/pulley_provenance_test.wat
compile ./tests/all/pulley_provenance_test_component.wat
compile ./tests/all/pulley_provenance_test_async_component.wat
MIRIFLAGS="$MIRIFLAGS -Zmiri-disable-isolation -Zmiri-permissive-provenance" \
cargo miri test --test all -- \
--ignored pulley_provenance_test "$@"