mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-05 11:31:14 +00:00
f73a345107
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
12 lines
340 B
Bash
Executable File
12 lines
340 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source $HOME/.cargo/env
|
|
|
|
BUILD_TARGET=${BUILD_TARGET-x86_64-unknown-linux-gnu}
|
|
cargo_args=("$@")
|
|
[ $(uname -m) = "aarch64" ] && cargo_args+=("--no-default-features")
|
|
[ $(uname -m) = "aarch64" ] && cargo_args+=("--features kvm")
|
|
|
|
export RUST_BACKTRACE=1
|
|
cargo test --target $BUILD_TARGET --workspace ${cargo_args[@]} || exit 1;
|