MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / run_example_in_kernel

Function run_example_in_kernel

tests/integration/kernel_integration.rs:158–162  ·  view source on GitHub ↗

Compile a hosted program and inject it as pid 1 (no FS image), then assert a clean spawn-and-exit.

(user_src: &str, label: &str)

Source from the content-addressed store, hash-verified

156 .join(format!("{name}.build"));
157 let manifest = BuildManifest::from_file(&manifest_path)
158 .unwrap_or_else(|e| panic!("{}: parse failed: {e}", manifest_path.display()));
159 let user = BuildExecutor::build(&manifest)
160 .unwrap_or_else(|e| panic!("{}: build failed: {e}", manifest_path.display()))
161 .linked;
162 let (_, outcome, uart) = boot_kernel(cached_kernel(), Some(&user), None, "", 10_000_000);
163 assert_user_exit_ok(&uart, &outcome, name);
164}
165

Calls 4

compile_hostedFunction · 0.85
boot_kernelFunction · 0.85
cached_kernelFunction · 0.85
assert_user_exit_okFunction · 0.85