mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-28 00:25:18 +00:00
f0082fecb9
This will help pinpoint issues when debugging test failures. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
25 lines
602 B
Bash
Executable File
25 lines
602 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source $HOME/.cargo/env
|
|
|
|
# More effective than just cargo test --all as it captures crates within crates
|
|
for f in $(find . -name Cargo.toml -printf '%h\n' | sort -u); do
|
|
pushd $f > /dev/null;
|
|
cargo test --no-run || exit 1;
|
|
popd > /dev/null;
|
|
done
|
|
|
|
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
|
|
for f in \$(find . -name Cargo.toml -printf '%h\n' | sort -u); do
|
|
pushd \$f > /dev/null;
|
|
export RUST_BACKTRACE=1
|
|
cargo test || exit 1;
|
|
popd > /dev/null;
|
|
done
|
|
EOF
|