mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-07 04:07:21 +00:00
tests: Run MMIO supported integration tests
Run these tests after the normal tests and only if those have succeeded. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
ccb83282e9
commit
1097afbaff
@ -138,6 +138,19 @@ cargo test --features "integration_tests" -- --nocapture
|
||||
EOF
|
||||
RES=$?
|
||||
|
||||
if [ $RES -eq 0 ]; then
|
||||
# virtio-mmio based testing
|
||||
cargo build --no-default-features --features "mmio"
|
||||
sudo setcap cap_net_admin+ep target/debug/cloud-hypervisor
|
||||
|
||||
newgrp kvm << EOF
|
||||
export RUST_BACKTRACE=1
|
||||
cargo test --features "integration_tests,mmio" -- --nocapture
|
||||
EOF
|
||||
|
||||
RES=$?
|
||||
fi
|
||||
|
||||
# Tear VFIO test network down
|
||||
sudo ip link del vfio-br0
|
||||
sudo ip link del vfio-tap0
|
||||
|
Loading…
x
Reference in New Issue
Block a user