MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / greeter_preload_callable_command

Function greeter_preload_callable_command

tests/all/cli_tests.rs:395–406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

393// Run the greeter test, which runs a preloaded reactor and a command.
394#[test]
395fn greeter_preload_callable_command() -> Result<()> {
396 let wasm = build_wasm("tests/all/cli_tests/greeter_command.wat")?;
397 let stdout = run_wasmtime(&[
398 "run",
399 "-Ccache=n",
400 "--preload",
401 "reactor=tests/all/cli_tests/greeter_callable_command.wat",
402 wasm.path().to_str().unwrap(),
403 ])?;
404 assert_eq!(stdout, "Hello _start\nHello callable greet\nHello done\n");
405 Ok(())
406}
407
408// Ensure successful WASI exit call with FPR saving frames on stack for Windows x64
409// See https://github.com/bytecodealliance/wasmtime/issues/1967

Callers

nothing calls this directly

Calls 6

run_wasmtimeFunction · 0.85
OkFunction · 0.85
to_strMethod · 0.80
build_wasmFunction · 0.70
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected