tests: add CVM test for landlock

Add a CVM integration test for landlock that validates
the same functionality using a confidential guest with
the basic_cvm_guest macro.

Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
Muminul Islam
2026-03-21 18:54:09 -07:00
committed by Rob Bradford
parent 833d1d39a5
commit 9564b4f278

View File

@@ -262,4 +262,10 @@ mod common_cvm {
basic_cvm_guest!(JAMMY_IMAGE_NAME).with_memory(&format!("{guest_memory_size_kb}K"));
_test_memory_overhead(&guest, guest_memory_size_kb);
}
#[test]
fn test_landlock() {
let guest = basic_cvm_guest!(JAMMY_IMAGE_NAME);
_test_landlock(&guest);
}
}