MCPcopy Create free account
hub / github.com/bootc-dev/bootc / test_boot

Function test_boot

crates/lib/src/lints.rs:1095–1112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1093
1094 #[test]
1095 fn test_boot() -> Result<()> {
1096 let root = &passing_fixture()?;
1097 let config = &LintExecutionConfig::default();
1098 check_boot(&root, config).unwrap().unwrap();
1099
1100 // Verify creating EFI doesn't error
1101 root.create_dir_all("EFI/Linux")?;
1102 root.write("EFI/Linux/foo.efi", b"some dummy efi")?;
1103 check_boot(&root, config).unwrap().unwrap();
1104
1105 root.create_dir("boot/somesubdir")?;
1106 let Err(e) = check_boot(&root, config).unwrap() else {
1107 unreachable!()
1108 };
1109 assert!(e.to_string().contains("somesubdir"));
1110
1111 Ok(())
1112 }
1113
1114 #[test]
1115 fn test_runtime_only_dirs() -> Result<()> {

Callers

nothing calls this directly

Calls 2

passing_fixtureFunction · 0.85
check_bootFunction · 0.85

Tested by

no test coverage detected