fix directory structure

This commit is contained in:
Matteo Ruf
2025-12-02 14:09:47 +01:00
parent 0e056e62d1
commit 1ae2e2be55
72 changed files with 14 additions and 112 deletions

28
tests/basic_boot.rs Normal file
View File

@@ -0,0 +1,28 @@
#![no_std]
#![no_main]
#![feature(custom_test_frameworks)]
#![test_runner(lupos::test_runner)]
#![reexport_test_harness_main = "test_main"]
use core::panic::PanicInfo;
use lupos::println;
#[test_case]
fn test_println() {
println!("test_println output");
}
#[no_mangle] // don't mangle the name of this function
pub extern "C" fn _start() -> ! {
test_main();
loop {}
}
fn test_runner(_tests: &[&dyn Fn()]) {
unimplemented!();
}
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
lupos::test_panic_handler(info)
}