mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-26 23:55:18 +00:00
705f27151d
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>
15 lines
307 B
Bash
Executable File
15 lines
307 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source $HOME/.cargo/env
|
|
|
|
cargo test --workspace --no-run
|
|
pushd target/debug
|
|
ls | grep net_util | grep -v "\.d" | xargs -n 1 sudo setcap cap_net_admin,cap_net_raw+ep
|
|
popd
|
|
|
|
sudo adduser $USER kvm
|
|
newgrp kvm << EOF || exit 1
|
|
export RUST_BACKTRACE=1
|
|
cargo test --workspace "$@" || exit 1;
|
|
EOF
|