27 lines
563 B
Bash
Executable File
27 lines
563 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
case "$BUILD_OPENSSL_VERSION" in
|
|
1.0.2*)
|
|
FEATURES="openssl-102"
|
|
;;
|
|
1.1.0*)
|
|
FEATURES="openssl-110"
|
|
;;
|
|
esac
|
|
|
|
echo Using features: $FEATURES
|
|
|
|
if [ -d "$HOME/openssl/lib" ]; then
|
|
export OPENSSL_DIR=$HOME/openssl
|
|
export PATH=$HOME/openssl/bin:$PATH
|
|
fi
|
|
|
|
if [ "$TARGET" == "arm-unknown-linux-gnueabihf" ]; then
|
|
FLAGS="--no-run"
|
|
fi
|
|
|
|
cargo run --manifest-path systest/Cargo.toml --target $TARGET
|
|
exec cargo test --manifest-path openssl/Cargo.toml --target $TARGET \
|
|
--features "$FEATURES" $FLAGS
|