Add TDX support for OSDK test

This commit is contained in:
Hsy-Intel
2024-07-10 16:52:13 +08:00
committed by Tate, Hongliang Tian
parent d6925e7c93
commit 3a6768ecb2
7 changed files with 101 additions and 14 deletions

View File

@ -2,6 +2,8 @@
//! Test the `run` command
use crate::util::is_tdx_enabled;
const WORKSPACE: &str = "/tmp/kernel_test_workspace/run_command";
mod workspace {
@ -67,6 +69,10 @@ mod qemu_gdb_feature {
#[test]
fn basic_debug() {
// Test skipped because TDX is enabled.
if is_tdx_enabled() {
return;
}
let workspace = workspace::WorkSpace::new(WORKSPACE, "basic_debug");
let unix_socket = {
let path = Path::new(&workspace.os_dir()).join("qemu-gdb-sock");
@ -109,6 +115,10 @@ mod qemu_gdb_feature {
#[test]
fn vsc_launch_file() {
// Test skipped because TDX is enabled.
if is_tdx_enabled() {
return;
}
let kernel_name = "vsc_launch_file";
let workspace = workspace::WorkSpace::new(WORKSPACE, kernel_name);
let addr = ":50001";