()
| 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<()> { |
nothing calls this directly
no test coverage detected