mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-25 23:25:19 +00:00
ce794f7858
We pass it to the integration and unit tests script through --libc. Cargo tests are left unmodified. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
17 lines
422 B
Bash
Executable File
17 lines
422 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source $HOME/.cargo/env
|
|
|
|
BUILD_TARGET=${BUILD_TARGET-x86_64-unknown-linux-gnu}
|
|
|
|
cargo test --target $BUILD_TARGET --workspace --no-run
|
|
pushd target/$BUILD_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 --target $BUILD_TARGET --workspace "$@" || exit 1;
|
|
EOF
|