()
| 691 | } |
| 692 | "#, |
| 693 | ); |
| 694 | let exec_file = assembled_to_elf_file(&child); |
| 695 | |
| 696 | let image = build_fs_image(&[ |
| 697 | FsEntry::Dir { path: "/home" }, |
| 698 | FsEntry::File { |
| 699 | path: "/home/hello.elf", |
| 700 | data: &exec_file, |
| 701 | }, |
| 702 | ]); |
| 703 | |
| 704 | let session = "ls\ncd /home\nls\nrun hello.elf\nexit\n"; |
| 705 | let (_, outcome, uart) = boot_kernel( |
| 706 | cached_kernel(), |
| 707 | Some(&shell), |
| 708 | Some(&image), |
| 709 | session, |
| 710 | 80_000_000, |
| 711 | ); |
| 712 | |
| 713 | assert!(!uart.contains("PANIC!"), "kernel panicked; uart={uart:?}"); |
| 714 | assert!( |
| 715 | uart.contains("HLL shell ready"), |
| 716 | "shell did not start; uart={uart:?}" |
nothing calls this directly
no test coverage detected