2019-07-16 09:54:33 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source $HOME/.cargo/env
|
2020-11-18 00:37:27 +00:00
|
|
|
source $(dirname "$0")/test-util.sh
|
|
|
|
|
|
|
|
process_common_args "$@"
|
2019-07-16 09:54:33 +00:00
|
|
|
|
2020-04-21 06:02:58 +00:00
|
|
|
BUILD_TARGET=${BUILD_TARGET-x86_64-unknown-linux-gnu}
|
2020-11-18 00:37:27 +00:00
|
|
|
cargo_args=("")
|
2020-06-12 00:58:50 +00:00
|
|
|
[ $(uname -m) = "aarch64" ] && cargo_args+=("--no-default-features")
|
2020-10-15 12:20:29 +00:00
|
|
|
[ $(uname -m) = "aarch64" ] && cargo_args+=("--features kvm")
|
2020-04-21 06:02:58 +00:00
|
|
|
|
2020-10-07 09:01:58 +00:00
|
|
|
export RUST_BACKTRACE=1
|
|
|
|
cargo test --target $BUILD_TARGET --workspace ${cargo_args[@]} || exit 1;
|