diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f9cca3ed..e52cdb56c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -160,8 +160,7 @@ jobs: - run: | cargo run test --languages rust,c,go tests/runtime-async \ --artifacts target/artifacts \ - --rust-wit-bindgen-path ./crates/guest-rust \ - --runner "wasmtime -W component-model-async -W component-model-threading -W component-model-async-stackful" + --rust-wit-bindgen-path ./crates/guest-rust test_unit: name: Crate Unit Tests diff --git a/crates/test/src/config.rs b/crates/test/src/config.rs index 03fc4f928..103e363e4 100644 --- a/crates/test/src/config.rs +++ b/crates/test/src/config.rs @@ -64,6 +64,11 @@ pub struct RuntimeTestConfig> { #[serde(default)] pub args: StringList, + /// Extra command line arguments to to pass to Wasmtime, such as enabling + /// extra wasm features. + #[serde(default)] + pub wasmtime_flags: StringList, + /// Language-specific configuration // // Note that this is an `Option` where `T` defaults to a catch-all hash diff --git a/crates/test/src/go.rs b/crates/test/src/go.rs index cf16d3343..0f63bb0b4 100644 --- a/crates/test/src/go.rs +++ b/crates/test/src/go.rs @@ -115,10 +115,9 @@ impl LanguageMethods for Go { fn package_name(package: &str) -> &str { package - .split_once('\n') - .unwrap() - .0 - .strip_prefix("package ") + .lines() + .filter_map(|l| l.strip_prefix("package ")) + .next() .unwrap() .trim() } diff --git a/crates/test/src/lib.rs b/crates/test/src/lib.rs index e64f13d68..615fb9ce0 100644 --- a/crates/test/src/lib.rs +++ b/crates/test/src/lib.rs @@ -193,6 +193,9 @@ struct Component { /// The contents of the test file itself. lang_config: Option>, + + /// Runtime flags to wasmtime. + wasmtime_flags: config::StringList, } #[derive(Clone)] @@ -467,6 +470,7 @@ impl Runner { kind, contents, lang_config: config.lang, + wasmtime_flags: config.wasmtime_flags, }) } @@ -911,7 +915,17 @@ impl Runner { let composed_wasm = dst.join(filename); write_if_different(&composed_wasm, &composed)?; - self.run_command(self.test_runner.command().arg(&composed_wasm))?; + let mut cmd = self.test_runner.command(); + for component in [runner] + .into_iter() + .chain(test_components.iter().map(|(c, _)| c)) + { + for flag in Vec::from(component.wasmtime_flags.clone()) { + cmd.arg(flag); + } + } + cmd.arg(&composed_wasm); + self.run_command(&mut cmd)?; Ok(()) } diff --git a/tests/runtime-async/async/cancel-import/runner.c b/tests/runtime-async/async/cancel-import/runner.c index 3ff39ab83..bb3877f52 100644 --- a/tests/runtime-async/async/cancel-import/runner.c +++ b/tests/runtime-async/async/cancel-import/runner.c @@ -1,4 +1,5 @@ //@ args = '--rename my:test/i=test --async=-run' +//@ wasmtime-flags = '-Wcomponent-model-async' #include #include diff --git a/tests/runtime-async/async/cancel-import/runner.rs b/tests/runtime-async/async/cancel-import/runner.rs index 08c7ee452..349e1764f 100644 --- a/tests/runtime-async/async/cancel-import/runner.rs +++ b/tests/runtime-async/async/cancel-import/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::my::test::i::*; diff --git a/tests/runtime-async/async/future-cancel-read/runner.c b/tests/runtime-async/async/future-cancel-read/runner.c index c9e5c2cc4..be17144c2 100644 --- a/tests/runtime-async/async/future-cancel-read/runner.c +++ b/tests/runtime-async/async/future-cancel-read/runner.c @@ -1,4 +1,5 @@ //@ args = '--rename my:test/i=test --async=-run' +//@ wasmtime-flags = '-Wcomponent-model-async' #include #include diff --git a/tests/runtime-async/async/future-cancel-read/runner.rs b/tests/runtime-async/async/future-cancel-read/runner.rs index 9139ae121..f3880772e 100644 --- a/tests/runtime-async/async/future-cancel-read/runner.rs +++ b/tests/runtime-async/async/future-cancel-read/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::my::test::i::*; diff --git a/tests/runtime-async/async/future-cancel-write-then-read/runner.rs b/tests/runtime-async/async/future-cancel-write-then-read/runner.rs index aca80cf25..38461e3c2 100644 --- a/tests/runtime-async/async/future-cancel-write-then-read/runner.rs +++ b/tests/runtime-async/async/future-cancel-write-then-read/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::a::b::the_test::f; diff --git a/tests/runtime-async/async/future-cancel-write/runner.c b/tests/runtime-async/async/future-cancel-write/runner.c index 0617c7b11..4533b0adf 100644 --- a/tests/runtime-async/async/future-cancel-write/runner.c +++ b/tests/runtime-async/async/future-cancel-write/runner.c @@ -1,4 +1,5 @@ //@ args = '--rename my:test/i=test --async=-run' +//@ wasmtime-flags = '-Wcomponent-model-async' #include #include diff --git a/tests/runtime-async/async/future-cancel-write/runner.rs b/tests/runtime-async/async/future-cancel-write/runner.rs index c7c827674..4b099fec6 100644 --- a/tests/runtime-async/async/future-cancel-write/runner.rs +++ b/tests/runtime-async/async/future-cancel-write/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::my::test::i::{read_and_drop, take_then_drop}; diff --git a/tests/runtime-async/async/future-close-after-coming-back/runner.rs b/tests/runtime-async/async/future-close-after-coming-back/runner.rs index a064decc0..2846f12d4 100644 --- a/tests/runtime-async/async/future-close-after-coming-back/runner.rs +++ b/tests/runtime-async/async/future-close-after-coming-back/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::a::b::the_test::f; diff --git a/tests/runtime-async/async/future-close-then-receive-read/runner.rs b/tests/runtime-async/async/future-close-then-receive-read/runner.rs index 7d95d7446..830d844bd 100644 --- a/tests/runtime-async/async/future-close-then-receive-read/runner.rs +++ b/tests/runtime-async/async/future-close-then-receive-read/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::a::b::the_test::{get, set}; diff --git a/tests/runtime-async/async/future-closes-with-error/runner.rs b/tests/runtime-async/async/future-closes-with-error/runner.rs index bdef3df3c..3e4d214c7 100644 --- a/tests/runtime-async/async/future-closes-with-error/runner.rs +++ b/tests/runtime-async/async/future-closes-with-error/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::a::b::the_test::f; diff --git a/tests/runtime-async/async/future-write-then-read-comes-back/runner.rs b/tests/runtime-async/async/future-write-then-read-comes-back/runner.rs index aa788069a..afaea670b 100644 --- a/tests/runtime-async/async/future-write-then-read-comes-back/runner.rs +++ b/tests/runtime-async/async/future-write-then-read-comes-back/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::a::b::the_test::f; diff --git a/tests/runtime-async/async/future-write-then-read-remote/runner.rs b/tests/runtime-async/async/future-write-then-read-remote/runner.rs index 46d8b75f5..bbaeeed20 100644 --- a/tests/runtime-async/async/future-write-then-read-remote/runner.rs +++ b/tests/runtime-async/async/future-write-then-read-remote/runner.rs @@ -1,4 +1,5 @@ //@ args = '--async=-all' +//@ wasmtime-flags = '-Wcomponent-model-async' include!(env!("BINDINGS")); diff --git a/tests/runtime-async/async/future-write-then-read-remote/runner2.rs b/tests/runtime-async/async/future-write-then-read-remote/runner2.rs index 1f47521a7..8f6e261f3 100644 --- a/tests/runtime-async/async/future-write-then-read-remote/runner2.rs +++ b/tests/runtime-async/async/future-write-then-read-remote/runner2.rs @@ -1,4 +1,5 @@ //@ args = '--async=-all' +//@ wasmtime-flags = '-Wcomponent-model-async' include!(env!("BINDINGS")); diff --git a/tests/runtime-async/async/incomplete-writes/runner.go b/tests/runtime-async/async/incomplete-writes/runner.go index fbacd41ea..039fc33c3 100644 --- a/tests/runtime-async/async/incomplete-writes/runner.go +++ b/tests/runtime-async/async/incomplete-writes/runner.go @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + package export_wit_world import ( diff --git a/tests/runtime-async/async/pending-import/runner.c b/tests/runtime-async/async/pending-import/runner.c index 6cd6555fa..2d80f3920 100644 --- a/tests/runtime-async/async/pending-import/runner.c +++ b/tests/runtime-async/async/pending-import/runner.c @@ -1,4 +1,5 @@ //@ args = '--rename my:test/i=test --async=-run' +//@ wasmtime-flags = '-Wcomponent-model-async' #include #include diff --git a/tests/runtime-async/async/pending-import/runner.rs b/tests/runtime-async/async/pending-import/runner.rs index 1b3a6b536..6acfc28df 100644 --- a/tests/runtime-async/async/pending-import/runner.rs +++ b/tests/runtime-async/async/pending-import/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::my::test::i::*; diff --git a/tests/runtime-async/async/ping-pong/runner.c b/tests/runtime-async/async/ping-pong/runner.c index c1dcfae86..02a76e655 100644 --- a/tests/runtime-async/async/ping-pong/runner.c +++ b/tests/runtime-async/async/ping-pong/runner.c @@ -1,4 +1,5 @@ //@ args = '--rename my:test/i=test --async=-run' +//@ wasmtime-flags = '-Wcomponent-model-async' #include #include diff --git a/tests/runtime-async/async/ping-pong/runner.go b/tests/runtime-async/async/ping-pong/runner.go index a8ffe8658..4709858e4 100644 --- a/tests/runtime-async/async/ping-pong/runner.go +++ b/tests/runtime-async/async/ping-pong/runner.go @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + package export_wit_world import ( diff --git a/tests/runtime-async/async/ping-pong/runner.rs b/tests/runtime-async/async/ping-pong/runner.rs index 26a36d4c9..d190b6678 100644 --- a/tests/runtime-async/async/ping-pong/runner.rs +++ b/tests/runtime-async/async/ping-pong/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::my::test::i::{ping, pong}; diff --git a/tests/runtime-async/async/rust-cross-task-wakeup/runner.rs b/tests/runtime-async/async/rust-cross-task-wakeup/runner.rs index 2abf545c0..cff7d26e9 100644 --- a/tests/runtime-async/async/rust-cross-task-wakeup/runner.rs +++ b/tests/runtime-async/async/rust-cross-task-wakeup/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::my::test::i::*; diff --git a/tests/runtime-async/async/rust-lowered-send/runner.rs b/tests/runtime-async/async/rust-lowered-send/runner.rs index fb165ab97..beebce8ba 100644 --- a/tests/runtime-async/async/rust-lowered-send/runner.rs +++ b/tests/runtime-async/async/rust-lowered-send/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::a::b::i::*; diff --git a/tests/runtime-async/async/simple-call-import/runner.c b/tests/runtime-async/async/simple-call-import/runner.c index 5c1d27efe..71053d82c 100644 --- a/tests/runtime-async/async/simple-call-import/runner.c +++ b/tests/runtime-async/async/simple-call-import/runner.c @@ -1,4 +1,6 @@ //@ args = '--rename a:b/i=test --async=-run' +//@ wasmtime-flags = '-Wcomponent-model-async' + #include #include diff --git a/tests/runtime-async/async/simple-call-import/runner.go b/tests/runtime-async/async/simple-call-import/runner.go index e0fdeea3d..473986f90 100644 --- a/tests/runtime-async/async/simple-call-import/runner.go +++ b/tests/runtime-async/async/simple-call-import/runner.go @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + package export_wit_world import test "wit_component/a_b_i" diff --git a/tests/runtime-async/async/simple-call-import/runner.rs b/tests/runtime-async/async/simple-call-import/runner.rs index 4d84b32f2..79142fe97 100644 --- a/tests/runtime-async/async/simple-call-import/runner.rs +++ b/tests/runtime-async/async/simple-call-import/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); struct Component; diff --git a/tests/runtime-async/async/simple-future/runner.c b/tests/runtime-async/async/simple-future/runner.c index b32ec8a17..b5d716f54 100644 --- a/tests/runtime-async/async/simple-future/runner.c +++ b/tests/runtime-async/async/simple-future/runner.c @@ -1,4 +1,5 @@ //@ args = '--rename my:test/i=test --async=-run' +//@ wasmtime-flags = '-Wcomponent-model-async' #include #include diff --git a/tests/runtime-async/async/simple-future/runner.cs b/tests/runtime-async/async/simple-future/runner.cs index 7f06673b8..c84b1d141 100644 --- a/tests/runtime-async/async/simple-future/runner.cs +++ b/tests/runtime-async/async/simple-future/runner.cs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + using System; using System.Runtime.InteropServices; using System.Diagnostics; @@ -29,7 +31,7 @@ public static Task Run() writer.Dispose(); set.Dispose(); - } + } { var (reader, writer) = IIImports.FutureNew(); @@ -61,4 +63,4 @@ public static int RunCallback() { throw new NotImplementedException(); } -} \ No newline at end of file +} diff --git a/tests/runtime-async/async/simple-future/runner.go b/tests/runtime-async/async/simple-future/runner.go index 8408a60ad..cd0772713 100644 --- a/tests/runtime-async/async/simple-future/runner.go +++ b/tests/runtime-async/async/simple-future/runner.go @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + package export_wit_world import ( @@ -54,9 +56,9 @@ func Run() { close(syncBarrier) go func() { - // If this is omitted, the host will see that the "rx.Read" operations aren't paired with - // a "tx.Write" and will result in a "wasm trap: deadlock detected" error. Additionally, - // this is placed after "close(syncBarrier)" to ensure that the panics are resulting from + // If this is omitted, the host will see that the "rx.Read" operations aren't paired with + // a "tx.Write" and will result in a "wasm trap: deadlock detected" error. Additionally, + // this is placed after "close(syncBarrier)" to ensure that the panics are resulting from // concurrent reads, and not from other scenarios that result in a nil handle. tx.Write(wit_types.Unit{}) }() @@ -85,9 +87,9 @@ func Run() { close(syncBarrier) go func() { - // If this is omitted, the host will see that the "tx.Write" operations aren't paired with - // an "rx.Read" and will result in a "wasm trap: deadlock detected" error. Additionally, - // this is placed after "close(syncBarrier)" to ensure that the panics are resulting from + // If this is omitted, the host will see that the "tx.Write" operations aren't paired with + // an "rx.Read" and will result in a "wasm trap: deadlock detected" error. Additionally, + // this is placed after "close(syncBarrier)" to ensure that the panics are resulting from // concurrent writes, and not from other scenarios that result in a nil handle. rx.Read() }() diff --git a/tests/runtime-async/async/simple-future/runner.rs b/tests/runtime-async/async/simple-future/runner.rs index bb22510fa..1b1140fc7 100644 --- a/tests/runtime-async/async/simple-future/runner.rs +++ b/tests/runtime-async/async/simple-future/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::my::test::i::*; diff --git a/tests/runtime-async/async/simple-import-params-results/runner.c b/tests/runtime-async/async/simple-import-params-results/runner.c index 2f4d0976f..2dc4e4548 100644 --- a/tests/runtime-async/async/simple-import-params-results/runner.c +++ b/tests/runtime-async/async/simple-import-params-results/runner.c @@ -1,4 +1,5 @@ //@ args = '--rename a:b/i=test --async=-run' +//@ wasmtime-flags = '-Wcomponent-model-async' #include #include diff --git a/tests/runtime-async/async/simple-import-params-results/runner.cs b/tests/runtime-async/async/simple-import-params-results/runner.cs index 1c6bb83c4..5d96913df 100644 --- a/tests/runtime-async/async/simple-import-params-results/runner.cs +++ b/tests/runtime-async/async/simple-import-params-results/runner.cs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + using System; using System.Runtime.InteropServices; using System.Diagnostics; diff --git a/tests/runtime-async/async/simple-import-params-results/runner.go b/tests/runtime-async/async/simple-import-params-results/runner.go index f47ca7789..11f9db2c0 100644 --- a/tests/runtime-async/async/simple-import-params-results/runner.go +++ b/tests/runtime-async/async/simple-import-params-results/runner.go @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + package export_wit_world import ( diff --git a/tests/runtime-async/async/simple-import-params-results/runner.rs b/tests/runtime-async/async/simple-import-params-results/runner.rs index 3e10e0870..d684310c7 100644 --- a/tests/runtime-async/async/simple-import-params-results/runner.rs +++ b/tests/runtime-async/async/simple-import-params-results/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::a::b::i::*; diff --git a/tests/runtime-async/async/simple-pending-import/runner.c b/tests/runtime-async/async/simple-pending-import/runner.c index c187f0636..36fb6a86d 100644 --- a/tests/runtime-async/async/simple-pending-import/runner.c +++ b/tests/runtime-async/async/simple-pending-import/runner.c @@ -1,4 +1,6 @@ //@ args = '--rename a:b/i=test --async=-run' +//@ wasmtime-flags = '-Wcomponent-model-async' + #include #include diff --git a/tests/runtime-async/async/simple-pending-import/runner.go b/tests/runtime-async/async/simple-pending-import/runner.go index e0fdeea3d..473986f90 100644 --- a/tests/runtime-async/async/simple-pending-import/runner.go +++ b/tests/runtime-async/async/simple-pending-import/runner.go @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + package export_wit_world import test "wit_component/a_b_i" diff --git a/tests/runtime-async/async/simple-pending-import/runner.rs b/tests/runtime-async/async/simple-pending-import/runner.rs index 4d84b32f2..79142fe97 100644 --- a/tests/runtime-async/async/simple-pending-import/runner.rs +++ b/tests/runtime-async/async/simple-pending-import/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); struct Component; diff --git a/tests/runtime-async/async/simple-stream-payload/runner.c b/tests/runtime-async/async/simple-stream-payload/runner.c index 1480104f2..472cf5a3f 100644 --- a/tests/runtime-async/async/simple-stream-payload/runner.c +++ b/tests/runtime-async/async/simple-stream-payload/runner.c @@ -1,4 +1,5 @@ //@ args = '--rename my:test/i=test --async=-run' +//@ wasmtime-flags = '-Wcomponent-model-async' #include #include diff --git a/tests/runtime-async/async/simple-stream-payload/runner.go b/tests/runtime-async/async/simple-stream-payload/runner.go index 251be8758..006611c57 100644 --- a/tests/runtime-async/async/simple-stream-payload/runner.go +++ b/tests/runtime-async/async/simple-stream-payload/runner.go @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + package export_wit_world import ( diff --git a/tests/runtime-async/async/simple-stream-payload/runner.rs b/tests/runtime-async/async/simple-stream-payload/runner.rs index d5e98fae0..b05bb574e 100644 --- a/tests/runtime-async/async/simple-stream-payload/runner.rs +++ b/tests/runtime-async/async/simple-stream-payload/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::my::test::i::*; diff --git a/tests/runtime-async/async/simple-stream/runner.c b/tests/runtime-async/async/simple-stream/runner.c index 0784a6403..54c1fef4d 100644 --- a/tests/runtime-async/async/simple-stream/runner.c +++ b/tests/runtime-async/async/simple-stream/runner.c @@ -1,4 +1,5 @@ //@ args = '--rename my:test/i=test --async=-run' +//@ wasmtime-flags = '-Wcomponent-model-async' #include #include diff --git a/tests/runtime-async/async/simple-stream/runner.go b/tests/runtime-async/async/simple-stream/runner.go index 919b000b1..ba450c6b8 100644 --- a/tests/runtime-async/async/simple-stream/runner.go +++ b/tests/runtime-async/async/simple-stream/runner.go @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + package export_wit_world import ( @@ -53,9 +55,9 @@ func Run() { close(syncBarrier) go func() { - // If this is omitted, the host will see that the "rx.Read" operations aren't paired with - // a "tx.WriteAll" and will result in a "wasm trap: deadlock detected" error. Additionally, - // this is placed after "close(syncBarrier)" to ensure that the panics are resulting from + // If this is omitted, the host will see that the "rx.Read" operations aren't paired with + // a "tx.WriteAll" and will result in a "wasm trap: deadlock detected" error. Additionally, + // this is placed after "close(syncBarrier)" to ensure that the panics are resulting from // concurrent reads, and not from other scenarios that result in a nil handle. tx.WriteAll([]wit_types.Unit{wit_types.Unit{}}) }() @@ -84,9 +86,9 @@ func Run() { close(syncBarrier) go func() { - // If this is omitted, the host will see that the "tx.WriteAll" operations aren't paired with - // an "rx.Read" and will result in a "wasm trap: deadlock detected" error. Additionally, - // this is placed after "close(syncBarrier)" to ensure that the panics are resulting from + // If this is omitted, the host will see that the "tx.WriteAll" operations aren't paired with + // an "rx.Read" and will result in a "wasm trap: deadlock detected" error. Additionally, + // this is placed after "close(syncBarrier)" to ensure that the panics are resulting from // concurrent writes, and not from other scenarios that result in a nil handle. result := make([]wit_types.Unit, 1) rx.Read(result) diff --git a/tests/runtime-async/async/simple-stream/runner.rs b/tests/runtime-async/async/simple-stream/runner.rs index 54da557d7..8c0c7b830 100644 --- a/tests/runtime-async/async/simple-stream/runner.rs +++ b/tests/runtime-async/async/simple-stream/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); use crate::my::test::i::*; diff --git a/tests/runtime-async/async/simple-yield/runner.c b/tests/runtime-async/async/simple-yield/runner.c index d27c3bc15..b74b9f8cc 100644 --- a/tests/runtime-async/async/simple-yield/runner.c +++ b/tests/runtime-async/async/simple-yield/runner.c @@ -1,4 +1,6 @@ //@ args = '--rename a:b/i=test --async=-run' +//@ wasmtime-flags = '-Wcomponent-model-async' + #include #include diff --git a/tests/runtime-async/async/simple-yield/runner.rs b/tests/runtime-async/async/simple-yield/runner.rs index 4d84b32f2..79142fe97 100644 --- a/tests/runtime-async/async/simple-yield/runner.rs +++ b/tests/runtime-async/async/simple-yield/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); struct Component; diff --git a/tests/runtime-async/async/threading-builtins/runner.c b/tests/runtime-async/async/threading-builtins/runner.c index ba55630de..ab4805c8f 100644 --- a/tests/runtime-async/async/threading-builtins/runner.c +++ b/tests/runtime-async/async/threading-builtins/runner.c @@ -1,4 +1,6 @@ //@ args = '--rename a:b/i=test --async=-run' +//@ wasmtime-flags = '-Wcomponent-model-async -Wcomponent-model-threading -Wcomponent-model-async-stackful' + #include #include diff --git a/tests/runtime-async/async/yield-loop-receives-events/runner.rs b/tests/runtime-async/async/yield-loop-receives-events/runner.rs index 6398f37ec..d6435ffd1 100644 --- a/tests/runtime-async/async/yield-loop-receives-events/runner.rs +++ b/tests/runtime-async/async/yield-loop-receives-events/runner.rs @@ -1,3 +1,5 @@ +//@ wasmtime-flags = '-Wcomponent-model-async' + include!(env!("BINDINGS")); struct Component;