Commit 03ac8ab
authored
Add a
* Add a `wast` subcommand to the CLI
This commit migrates the `tests/roundtrip.rs` file to a `wast`
subcommand of the CLI. This does not actually run tests in terms of
executing WebAssembly but it works as a way to parse the test and
validate, so everything short of runtime execution and related errors.
* Migrate `tests/local/*` to `tests/cli/*`
With the addition of the `wast` subcommand in the previous commit
there's no longer any need to have `tests/local/*`. Additionally it's
now much easier to perform per-test configuration since the flags for
the test are in the test itself.
* Migrate spec tests to `tests/cli/*`
Similarly to the previous commit of moving towards `wasm-tools wast`
this commit migrates the spec test infrastructure to using this as well.
Spec tests are now run by:
* A script, `ci/generate-spec-tests.rs`, generates files in
`tests/cli/spec/*.wast` to run each spec test.
* Each test lists the features needed to be enabled for the test to run.
* The tests are then naturally run during the `--test cli` test suite run.
New automation is added to ensure that the version in-tree is up-to-date
to ensure we don't creep in too many files by accident.
* Remove the roundtrip test suite
No longer needed!
* Handle some rebase conflicts
* Update submodules in new CI job
* Update testing and contributing docs
* Fix typo in README
* Sync snapshotswast subcommand to the CLI (#2096)1 parent b94f88d commit 03ac8ab
1,959 files changed
Lines changed: 21865 additions & 18006 deletions
File tree
- .github/workflows
- ci
- src/bin/wasm-tools
- tests
- cli
- branch-hinting
- component-model-async
- component-model
- custom-page-sizes
- exnref
- folding
- function-references
- call_ref
- gc
- invalid
- legacy-exceptions
- missing-features
- component-model
- function-references
- gc
- reference-types
- spec
- proposals
- annotations
- custom-page-sizes
- exception-handling
- extended-const
- function-references
- gc
- memory64
- multi-memory
- relaxed-simd
- tail-call
- threads
- wasm-3.0
- wide-arithmetic
- stack-switching
- upstream-threads
- local
- branch-hinting
- component-model-async
- component-model
- custom-page-sizes
- exnref
- folding
- function-references
- call_ref
- gc
- invalid
- legacy-exceptions
- missing-features
- component-model
- function-references
- gc
- reference-types
- stack-switching
- snapshots
- cli
- anyref1.wast
- atomics.wast
- block-w-params-unreachable.wast
- blockty.wast
- br-confusion.wast
- br_if-loop-stack.wast
- br_if-loop-unreachable.wast
- br_table_loop_multi.wast
- branch-hinting
- branch-hinting-simple.wast
- comments.wast
- component-model-async
- error-context.wast
- futures.wast
- lift.wast
- lower.wast
- names.wast
- resources.wast
- streams.wast
- task-builtins.wast
- component-model
- a.wast
- adapt.wast
- alias.wast
- big.wast
- definedtypes.wast
- empty.wast
- example.wast
- export-ascription.wast
- export-introduces-alias.wast
- export.wast
- func.wast
- gc.wast
- import-extended.wast
- import.wast
- imports-exports.wast
- inline-exports.wast
- instance-type.wast
- instantiate.wast
- link.wast
- lots-of-aliases.wast
- module-link.wast
- naming.wast
- nested-modules.wast
- resources.wast
- start.wast
- string.wast
- type-export-restrictions.wast
- types.wast
- virtualize.wast
- convert-sat.wast
- custom-page-sizes
- custom-page-sizes.wast
- dummy.wast
- dylink0.wast
- elem.wast
- empty-elem.wast
- exnref
- exnref.wast
- throw_ref.wast
- externref-elem-segment.wast
- floate2.wast
- folding
- array.wast
- array_copy.wast
- array_fill.wast
- array_init_data.wast
- array_init_elem.wast
- branch-hinting-simple.wast
- fold-atomic-fence.wast
- fold-atomic.wast
- fold-basic.wast
- fold-block-labels.wast
- fold-block.wast
- fold-bulk-memory.wast
- fold-call-import-gen-names.wast
- fold-call.wast
- fold-fac.wast
- fold-global-getset.wast
- fold-load-store.wast
- fold-load-store64.wast
- fold-local-getset.wast
- fold-multi.wast
- fold-nop.wast
- fold-reference-types.wast
- fold-simd.wast
- fold-stack-switching-gc.wast
- fold-stack-switching.wast
- fold-tail-call.wast
- fold-throw.wast
- fold-unfoldable-if.wast
- fold-unreachable.wast
- return_call_indirect.wast
- struct.wast
- function-reference-structural-matching.wast
- function-references
- call_ref
- br_on_non_null.wast
- br_on_null.wast
- call_ref.wast
- ref_as_non_null.wast
- return_call_ref.wast
- issue-923.wast
- table-nonnull.wast
- fuzz1.wast
- gc
- gc-array-types.wast
- gc-array.wast
- gc-field-subtyping.wast
- gc-heaptypes.wast
- gc-i31.wast
- gc-rec-sub.wast
- gc-ref-global-import.wast
- gc-ref.wast
- gc-struct-names.wast
- gc-struct-types.wast
- gc-struct.wast
- gc-subtypes.wast
- invalid.wast
- rec-group-local.wast
- subtype-of-self-recursive-type.wast
- type-equivalence.wast
- type-subtyping.wast
- if-else-parsing.wast
- if-multi-unreachable.wast
- instance.wast
- invalid
- issue126.wast
- issue192.wast
- issue194.wast
- labels.wast
- legacy-exceptions
- legacy-exceptions.wast
- rethrow.wast
- throw.wast
- try_catch.wast
- try_delegate.wast
- memory-discard.wast
- memory64.wast
- missing-features
- async-builtins.wast
- async-stackful.wast
- component-model
- function-references
- gc
- gc-types-disabled.wast
- issue540.wast
- reference-types
- multi-memory.wast
- multi-memory64.wast
- names.wast
- naming.wast
- param-names.wast
- producers.wast
- ref.wast
- relaxed-simd.wast
- select-interesting.wast
- select_v128.wast
- simd.wast
- simple.wast
- stack-switching
- actor-lwt.wast
- actor.wast
- async-await.wast
- cont.wast
- cont_canonicalisation.wast
- cont_new.wast
- cont_resume.wast
- cont_suspend.wast
- control-lwt.wast
- fun-actor-lwt.wast
- fun-lwt.wast
- fun-state.wast
- generators.wast
- lwt.wast
- pipes.wast
- static-lwt.wast
- validation.wast
- validation_gc.wast
- table-big.wast
- table-copy.wast
- table-opt-idx.wast
- unreachable-block.wast
- unreachable-valid.wast
- upstream-threads
- LB.wast
- LB_atomic.wast
- MP.wast
- MP_atomic.wast
- MP_wait.wast
- SB.wast
- SB_atomic.wast
- wait_notify.wast
- wat-numerics.wast
- wide-arithmetic.wast
- local
- branch-hinting
- component-model-async
- component-model
- custom-page-sizes
- exnref
- folding
- gc
- invalid
- missing-features
- component-model
- function-references
- gc
- reference-types
- stack-switching
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| |||
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
286 | 303 | | |
287 | 304 | | |
288 | 305 | | |
| |||
329 | 346 | | |
330 | 347 | | |
331 | 348 | | |
| 349 | + | |
332 | 350 | | |
333 | 351 | | |
334 | 352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
58 | 64 | | |
59 | 65 | | |
60 | | - | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | | - | |
64 | | - | |
| 69 | + | |
65 | 70 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
70 | 74 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 75 | + | |
| 76 | + | |
78 | 77 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
89 | 86 | | |
90 | | - | |
91 | | - | |
92 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
181 | 184 | | |
182 | 185 | | |
183 | 186 | | |
| |||
193 | 196 | | |
194 | 197 | | |
195 | 198 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 199 | | |
201 | 200 | | |
202 | 201 | | |
| |||
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| |||
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 68 | | |
62 | 69 | | |
63 | 70 | | |
| |||
99 | 106 | | |
100 | 107 | | |
101 | 108 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 109 | | |
123 | 110 | | |
124 | 111 | | |
| |||
130 | 117 | | |
131 | 118 | | |
132 | 119 | | |
133 | | - | |
| 120 | + | |
134 | 121 | | |
135 | 122 | | |
136 | 123 | | |
| |||
219 | 206 | | |
220 | 207 | | |
221 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
222 | 231 | | |
223 | 232 | | |
224 | 233 | | |
| |||
0 commit comments