mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
ci: Run vhost-user-net tests for mmio transport
No reason to skip vhost-user-net integration tests for the mmio transport build. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
committed by
Rob Bradford
parent
68293fc0e8
commit
c95851f48f
@@ -1294,6 +1294,8 @@ mod tests {
|
||||
// Since virtio-net has 2 queue pairs, its vectors is as follows:
|
||||
// 1 virtio-net with 5 vectors: config, Rx (2), Tx (2)
|
||||
// Based on the above, the total vectors should 14.
|
||||
// This is a PCI only feature.
|
||||
#[cfg(not(feature = "mmio"))]
|
||||
aver_eq!(
|
||||
tb,
|
||||
guest
|
||||
@@ -1318,12 +1320,12 @@ mod tests {
|
||||
});
|
||||
}
|
||||
|
||||
#[cfg_attr(not(feature = "mmio"), test)]
|
||||
#[test]
|
||||
fn test_vhost_user_net_default() {
|
||||
test_vhost_user_net(None, 2, Some(&prepare_vhost_user_net_daemon), false)
|
||||
}
|
||||
|
||||
#[cfg_attr(not(feature = "mmio"), test)]
|
||||
#[test]
|
||||
fn test_vhost_user_net_tap() {
|
||||
test_vhost_user_net(
|
||||
Some("vunet-tap0"),
|
||||
@@ -1333,12 +1335,12 @@ mod tests {
|
||||
)
|
||||
}
|
||||
|
||||
#[cfg_attr(not(feature = "mmio"), test)]
|
||||
#[test]
|
||||
fn test_vhost_user_net_multiple_queues() {
|
||||
test_vhost_user_net(None, 4, Some(&prepare_vhost_user_net_daemon), false)
|
||||
}
|
||||
|
||||
#[cfg_attr(not(feature = "mmio"), test)]
|
||||
#[test]
|
||||
fn test_vhost_user_net_tap_multiple_queues() {
|
||||
test_vhost_user_net(
|
||||
Some("vunet-tap1"),
|
||||
@@ -1348,7 +1350,7 @@ mod tests {
|
||||
)
|
||||
}
|
||||
|
||||
#[cfg_attr(not(feature = "mmio"), test)]
|
||||
#[test]
|
||||
fn test_vhost_user_net_self_spawning() {
|
||||
test_vhost_user_net(None, 4, None, true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user