mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 02:43:24 +00:00
Add TDX support for OSDK test
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
d6925e7c93
commit
3a6768ecb2
@ -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";
|
||||
|
Reference in New Issue
Block a user