integration testing
This commit is contained in:
parent
386522208e
commit
a3005ff146
3 changed files with 98 additions and 61 deletions
19
tests/basic_boot.rs
Normal file
19
tests/basic_boot.rs
Normal file
|
@ -0,0 +1,19 @@
|
|||
#![no_std]
|
||||
#![no_main]
|
||||
#![feature(custom_test_frameworks)]
|
||||
#![test_runner(totos::test_runner)]
|
||||
#![reexport_test_harness_main = "test_main"]
|
||||
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
#[unsafe(no_mangle)]
|
||||
pub extern "C" fn _start() -> ! {
|
||||
test_main();
|
||||
|
||||
loop {}
|
||||
}
|
||||
|
||||
#[panic_handler]
|
||||
fn panic(info: &PanicInfo) -> ! {
|
||||
totos::test_panic_handler(info)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue