()
| 378 | // Run the greeter test, but this time preload a command. |
| 379 | #[test] |
| 380 | fn greeter_preload_command() -> Result<()> { |
| 381 | let wasm = build_wasm("tests/all/cli_tests/greeter_reactor.wat")?; |
| 382 | let stdout = run_wasmtime(&[ |
| 383 | "run", |
| 384 | "-Ccache=n", |
| 385 | "--preload", |
| 386 | "reactor=tests/all/cli_tests/hello_wasi_snapshot1.wat", |
| 387 | wasm.path().to_str().unwrap(), |
| 388 | ])?; |
| 389 | assert_eq!(stdout, "Hello _initialize\n"); |
| 390 | Ok(()) |
| 391 | } |
| 392 | |
| 393 | // Run the greeter test, which runs a preloaded reactor and a command. |
| 394 | #[test] |
nothing calls this directly
no test coverage detected