mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: add CVM test for macvtap
Add a CVM integration test for macvtap that validates the same functionality using a confidential guest with the basic_cvm_guest macro and with_cpu(2). Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
6fa6ead2b3
commit
b7bd19b24a
@@ -304,4 +304,10 @@ mod common_cvm {
|
||||
let guest = basic_cvm_guest!(JAMMY_IMAGE_NAME).with_cpu(2);
|
||||
_test_tap_from_fd(&guest);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_macvtap() {
|
||||
let guest = basic_cvm_guest!(JAMMY_IMAGE_NAME).with_cpu(2);
|
||||
_test_macvtap(&guest, false, "guestmacvtap0", "hostmacvtap0");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user