scripts: dev_cli: Pass unit and integration test args to cargo test

In order, among other things, to use the development CLI to run specific
integration tests. For example, to run only the memory_overhead
integration test:

./scripts/dev_cli.sh tests --integration -- memory_overhead

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2020-02-04 14:49:21 +01:00
parent bc053f1b13
commit 705f27151d
3 changed files with 6 additions and 6 deletions

View File

@@ -177,7 +177,7 @@ ls target/debug/deps/cloud_hypervisor-* | xargs -n 1 sudo setcap cap_net_admin+e
sudo adduser $USER kvm
newgrp kvm << EOF
export RUST_BACKTRACE=1
time cargo test --features "integration_tests" -- --nocapture
time cargo test --features "integration_tests" "$@" -- --nocapture
EOF
RES=$?
@@ -188,7 +188,7 @@ if [ $RES -eq 0 ]; then
newgrp kvm << EOF
export RUST_BACKTRACE=1
time cargo test --features "integration_tests,mmio" -- --nocapture
time cargo test --features "integration_tests,mmio" "$@" -- --nocapture
EOF
RES=$?