From 3b13211579fcd1f195f7a1acda3b71f862bc50ae Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Mon, 22 Apr 2019 11:52:22 +0200 Subject: [PATCH] Add the skeleton for an integration test --- tests/basic_boot.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/basic_boot.rs diff --git a/tests/basic_boot.rs b/tests/basic_boot.rs new file mode 100644 index 00000000..52ff9810 --- /dev/null +++ b/tests/basic_boot.rs @@ -0,0 +1,23 @@ +#![no_std] +#![no_main] +#![feature(custom_test_frameworks)] +#![test_runner(crate::test_runner)] +#![reexport_test_harness_main = "test_main"] + +use core::panic::PanicInfo; + +#[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) -> ! { + loop {} +}