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

Function kernel_boots_without_fs_image

tests/integration/kernel_integration.rs:3376–3390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3374
3375// The FS inspector walks the in-memory image from guest memory; this guards the
3376// on-disk offsets, the tree reader, and the file-preview round-trip.
3377#[test]
3378fn fs_inspector_reads_tree_and_preview() {
3379 use full_stack::inspect::fs_view::{self, FsSymbols};
3380
3381 let kernel = cached_kernel();
3382 let shell = compile_hosted_program("shell");
3383 let body = b"hello from the fs inspector\n";
3384 let image = build_fs_image(&[
3385 FsEntry::Dir { path: "/home" },
3386 FsEntry::File {
3387 path: "/readme.txt",
3388 data: body,
3389 },
3390 ]);
3391
3392 let mut vm = setup_kernel_vm(kernel, Some(&shell), Some(&image), "");
3393 let _ = vm.run(80_000_000);

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected