blob: b07b8e4b56f3b8c1cbe8f5b0526b10f64d5ae54c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/bash
set -e
case "$BUILD_OPENSSL_VERSION" in
1.0.2*)
FEATURES="v102"
;;
1.1.0*)
FEATURES="v110"
;;
esac
echo Using features: $FEATURES
if [ -n "${BUILD_LIBRESSL_VERSION}" -a -d "$HOME/libressl/lib" ]; then
echo "Testing build libressl-${BUILD_LIBRESSL_VERSION}"
export OPENSSL_DIR=${HOME}/libressl
export PATH="${HOME}/libressl/bin:${PATH}"
elif [ -n "${BUILD_OPENSSL_VERSION}" -a -d "$HOME/openssl/lib" ]; then
echo "Testing build openssl-${BUILD_LIBRESSL_VERSION}"
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 -v
exec cargo test --manifest-path openssl/Cargo.toml --target $TARGET \
--features "$FEATURES" -v $FLAGS
|