mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-25 07:05:19 +00:00
22867232e1
There is no need to set them in the test scripts while the main script
already has them.
The consolidates how things are done.
Signed-off-by: Wei Liu <liuwe@microsoft.com>
(cherry picked from commit 8ba5682e3b
)
Signed-off-by: Bo Chen <chen.bo@intel.com>
19 lines
427 B
Bash
Executable File
19 lines
427 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source $HOME/.cargo/env
|
|
source $(dirname "$0")/test-util.sh
|
|
|
|
process_common_args "$@"
|
|
|
|
cargo_args=("")
|
|
|
|
if [[ $hypervisor = "mshv" ]]; then
|
|
cargo_args+=("--no-default-features")
|
|
cargo_args+=("--features $hypervisor")
|
|
elif [[ $(uname -m) = "x86_64" ]]; then
|
|
cargo_args+=("--features tdx")
|
|
fi
|
|
|
|
export RUST_BACKTRACE=1
|
|
cargo test --lib --bins --target $BUILD_TARGET --workspace ${cargo_args[@]} || exit 1
|