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 .next()?;
15 Some((name.to_owned(), *source))
16 })
17 .collect()
18}
19
20// Compile one kernel HLL source as a standalone module and assert it succeeds.
21fn assert_kernel_module_compiles(name: &str, source: &str) {
22 eprintln!("compiling kernel module {name}");
23 let mut p = CompilationPipeline::new();
24 p.set_target_mode(TargetMode::Kernel);
25 p.set_write_artifacts(false);

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