asterinas/tests/framebuffer.rs
2023-04-10 14:49:39 +08:00

28 lines
579 B
Rust

#![no_std]
#![no_main]
#![feature(custom_test_frameworks)]
#![test_runner(jinux_frame::test_runner)]
#![reexport_test_harness_main = "test_main"]
extern crate alloc;
use core::panic::PanicInfo;
#[no_mangle]
pub extern "C" fn _start() -> ! {
jinux_frame::init();
component::init_all(component::parse_metadata!()).unwrap();
test_main();
loop {}
}
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
jinux_frame::test_panic_handler(info)
}
#[test_case]
fn test_framebuffer() {
for i in 0..30 {
jinux_framebuffer::println!("test_println!");
}
}