mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +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:
parent
68293fc0e8
commit
c95851f48f
@ -216,6 +216,10 @@ if [ $RES -eq 0 ]; then
|
||||
cargo build --release --no-default-features --features "mmio"
|
||||
sudo setcap cap_net_admin+ep target/release/cloud-hypervisor
|
||||
|
||||
# Ensure test binary has the same caps as the cloud-hypervisor one
|
||||
time cargo test --no-run --features "integration_tests,mmio" -- --nocapture || exit 1
|
||||
ls target/debug/deps/cloud_hypervisor-* | xargs -n 1 sudo setcap cap_net_admin+ep
|
||||
|
||||
newgrp kvm << EOF
|
||||
export RUST_BACKTRACE=1
|
||||
time cargo test --features "integration_tests,mmio" "$@" -- --nocapture
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user