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

Function assert_kernel_module_compiles

tests/integration/kernel_modules.rs:16–22  ·  view source on GitHub ↗

Compile one kernel HLL source as a standalone module and assert it succeeds.

(name: &str, source: &str)

Source from the content-addressed store, hash-verified

14}
15
16// --- Stdlib modules used by the kernel ---
17
18#[test]
19fn kernel_stdlib_all_modules_compile() {
20 let modules = get_stdlib_modules_for_mode(TargetMode::Kernel);
21 let mut p = CompilationPipeline::new();
22 p.set_target_mode(TargetMode::Kernel);
23 p.set_write_artifacts(false);
24 p.set_string_prefix(Some("__kern_str_".to_owned()));
25 p.set_type_prelude(get_stdlib_type_prelude());

Callers 12

kernel_entry_compilesFunction · 0.85
kernel_checks_compilesFunction · 0.85
kernel_pmm_compilesFunction · 0.85
kernel_vmm_compilesFunction · 0.85
kernel_process_compilesFunction · 0.85
kernel_syscall_compilesFunction · 0.85
kernel_fs_compilesFunction · 0.85
my_kernel_compilesFunction · 0.85

Calls 3

set_write_artifactsMethod · 0.80
compile_modulesMethod · 0.80
set_target_modeMethod · 0.45

Tested by 12

kernel_entry_compilesFunction · 0.68
kernel_checks_compilesFunction · 0.68
kernel_pmm_compilesFunction · 0.68
kernel_vmm_compilesFunction · 0.68
kernel_process_compilesFunction · 0.68
kernel_syscall_compilesFunction · 0.68
kernel_fs_compilesFunction · 0.68
my_kernel_compilesFunction · 0.68