mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 11:25:20 +00:00
78fe807284
The addition of [workspace] to the top level Cargo.toml is necessary to have the binaries colocated together. The Cargo.lock files have also been refreshed by the change to the Cargo.toml. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
17 lines
393 B
Bash
Executable File
17 lines
393 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source $HOME/.cargo/env
|
|
|
|
cargo test --all --no-run
|
|
|
|
pushd target/debug
|
|
ls | grep net_util | grep -v "\.d" | xargs sudo setcap cap_net_admin,cap_net_raw+ep
|
|
popd
|
|
|
|
# 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 || exit 1;
|
|
popd > /dev/null;
|
|
done
|