Skip to content

Commit d151134

Browse files
committed
Improve test/README.md with instructions for ignoring not-yet-implemented tests
1 parent f7c2303 commit d151134

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

test/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ This directory contains Component Model reference tests, grouped by functionalit
44

55
## Running in Wasmtime
66

7-
(Until the `component-model-async` and `component-model-async-builtins` features
8-
are enabled by default, they must be explicitly enabled as shown below.)
9-
107
A single `.wast` test can be run with full backtrace on trap via:
118
```
129
WASMTIME_BACKTRACE_DETAILS=1 wasmtime wast -W component-model-more-async-builtins=y -W component-model-threading=y -W component-model-async-stackful=y -W component-model-implements=y the-test.wast
1310
```
11+
1412
All the tests can be run from this directory via:
1513
```
1614
find . -name "*.wast" | xargs wasmtime wast -W component-model-more-async-builtins=y -W component-model-threading=y -W component-model-async-stackful=y -W component-model-implements=y
1715
```
16+
17+
Sometimes tests are landed ahead of the implementation and fail for a while.
18+
These tests are listed in 'nyi.txt' and can be filtered out via:
19+
```
20+
find . -name "*.wast" | grep -vxFf nyi.txt | xargs wasmtime wast -W component-model-more-async-builtins=y -W component-model-threading=y -W component-model-async-stackful=y -W component-model-implements=y
21+
```

test/nyi.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# See README.md
2+
./wasm-tools/memory64.wast
3+
./wasm-tools/resources.wast
4+
./async/trap-if-sync-and-waitable-set.wast
5+
./async/trap-if-transfer-in-waitable-set.wast

0 commit comments

Comments
 (0)