mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-05 11:31:14 +00:00
430f72f96c
In this way, we don't need to rely on feature gates to exclude integration tests from running. Signed-off-by: Bo Chen <chen.bo@intel.com>
17 lines
434 B
Bash
Executable File
17 lines
434 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source $HOME/.cargo/env
|
|
source $(dirname "$0")/test-util.sh
|
|
|
|
process_common_args "$@"
|
|
|
|
BUILD_TARGET=${BUILD_TARGET-x86_64-unknown-linux-gnu}
|
|
cargo_args=("")
|
|
|
|
if [[ $(uname -m) = "aarch64" || $hypervisor = "mshv" ]]; then
|
|
cargo_args+=("--no-default-features")
|
|
cargo_args+=("--features $hypervisor")
|
|
fi
|
|
export RUST_BACKTRACE=1
|
|
cargo test --lib --bins --target $BUILD_TARGET --workspace ${cargo_args[@]} || exit 1;
|