From 43641cf7146edfbf84852e55aad4a58e2ee17492 Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Sat, 21 Mar 2026 17:51:16 -0700 Subject: [PATCH] tests: add CVM test for dmi_uuid Add a CVM variant of the DMI UUID test in integration_cvm.rs. This test creates a confidential guest using the basic_cvm_guest! macro and invokes the shared _test_dmi_uuid() wrapper to validate DMI UUID behavior under CVM. Signed-off-by: Muminul Islam --- cloud-hypervisor/tests/common/tests_wrappers.rs | 2 +- cloud-hypervisor/tests/integration_cvm.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cloud-hypervisor/tests/common/tests_wrappers.rs b/cloud-hypervisor/tests/common/tests_wrappers.rs index 972c115f0..d421e9c13 100644 --- a/cloud-hypervisor/tests/common/tests_wrappers.rs +++ b/cloud-hypervisor/tests/common/tests_wrappers.rs @@ -2238,4 +2238,4 @@ pub(crate) fn _test_dmi_uuid(guest: &Guest) { let output = child.wait_with_output().unwrap(); handle_child_output(r, &output); -} \ No newline at end of file +} diff --git a/cloud-hypervisor/tests/integration_cvm.rs b/cloud-hypervisor/tests/integration_cvm.rs index 1df8d0f11..e599541f6 100644 --- a/cloud-hypervisor/tests/integration_cvm.rs +++ b/cloud-hypervisor/tests/integration_cvm.rs @@ -206,4 +206,10 @@ mod common_cvm { let guest = basic_cvm_guest!(JAMMY_IMAGE_NAME); _test_split_irqchip(&guest); } + + #[test] + fn test_dmi_uuid() { + let guest = basic_cvm_guest!(JAMMY_IMAGE_NAME); + _test_dmi_uuid(&guest); + } }