From b7eefae5f95a3810bf6858f3f5de4272bd20ef11 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 25 Apr 2019 18:16:52 +0200 Subject: [PATCH] Delete old `bootimage test` integration tests --- src/bin/test-basic-boot.rs | 33 --------------------------- src/bin/test-exception-breakpoint.rs | 34 ---------------------------- src/bin/test-panic.rs | 23 ------------------- 3 files changed, 90 deletions(-) delete mode 100644 src/bin/test-basic-boot.rs delete mode 100644 src/bin/test-exception-breakpoint.rs delete mode 100644 src/bin/test-panic.rs diff --git a/src/bin/test-basic-boot.rs b/src/bin/test-basic-boot.rs deleted file mode 100644 index f77d4a02..00000000 --- a/src/bin/test-basic-boot.rs +++ /dev/null @@ -1,33 +0,0 @@ -#![cfg_attr(not(test), no_std)] -#![cfg_attr(not(test), no_main)] // disable all Rust-level entry points -#![cfg_attr(test, allow(unused_imports))] - -use blog_os::{exit_qemu, serial_println}; -use core::panic::PanicInfo; - -/// This function is the entry point, since the linker looks for a function -/// named `_start` by default. -#[cfg(not(test))] -#[no_mangle] // don't mangle the name of this function -pub extern "C" fn _start() -> ! { - serial_println!("ok"); - - unsafe { - exit_qemu(); - } - loop {} -} - -/// This function is called on panic. -#[cfg(not(test))] -#[panic_handler] -fn panic(info: &PanicInfo) -> ! { - serial_println!("failed"); - - serial_println!("{}", info); - - unsafe { - exit_qemu(); - } - loop {} -} diff --git a/src/bin/test-exception-breakpoint.rs b/src/bin/test-exception-breakpoint.rs deleted file mode 100644 index 0185aee6..00000000 --- a/src/bin/test-exception-breakpoint.rs +++ /dev/null @@ -1,34 +0,0 @@ -#![no_std] -#![cfg_attr(not(test), no_main)] -#![cfg_attr(test, allow(dead_code, unused_macros, unused_imports))] - -use blog_os::{exit_qemu, serial_println}; -use core::panic::PanicInfo; - -#[cfg(not(test))] -#[no_mangle] -pub extern "C" fn _start() -> ! { - blog_os::interrupts::init_idt(); - - x86_64::instructions::interrupts::int3(); - - serial_println!("ok"); - - unsafe { - exit_qemu(); - } - loop {} -} - -#[cfg(not(test))] -#[panic_handler] -fn panic(info: &PanicInfo) -> ! { - serial_println!("failed"); - - serial_println!("{}", info); - - unsafe { - exit_qemu(); - } - loop {} -} diff --git a/src/bin/test-panic.rs b/src/bin/test-panic.rs deleted file mode 100644 index c68ac51d..00000000 --- a/src/bin/test-panic.rs +++ /dev/null @@ -1,23 +0,0 @@ -#![cfg_attr(not(test), no_std)] -#![cfg_attr(not(test), no_main)] -#![cfg_attr(test, allow(unused_imports))] - -use blog_os::{exit_qemu, serial_println}; -use core::panic::PanicInfo; - -#[cfg(not(test))] -#[no_mangle] -pub extern "C" fn _start() -> ! { - panic!(); -} - -#[cfg(not(test))] -#[panic_handler] -fn panic(_info: &PanicInfo) -> ! { - serial_println!("ok"); - - unsafe { - exit_qemu(); - } - loop {} -}