Skip to content

Commit 735b32c

Browse files
authored
Merge 8af4df3 into 014d836
2 parents 014d836 + 8af4df3 commit 735b32c

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

ci.sh

+23-20
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,32 @@ case "$RUST_VERSION" in
2424
rustup target add --toolchain $RUST_VERSION $TARGET
2525
printenv
2626

27-
for FEAT in "" "x509," "ssl,"; do
28-
# The SGX target cannot be run under test like a ELF binary
29-
if [ "$TARGET" != "x86_64-fortanix-unknown-sgx" ]; then
30-
# make sure that explicitly providing the default target works
31-
cargo nextest run --features "$FEAT" --target $TARGET --release
32-
cargo nextest run --features "$FEAT"pkcs12 --target $TARGET
33-
cargo nextest run --features "$FEAT"pkcs12_rc2 --target $TARGET
34-
cargo nextest run --features "$FEAT"dsa --target $TARGET
27+
# The SGX target cannot be run under test like a ELF binary
28+
if [ "$TARGET" != "x86_64-fortanix-unknown-sgx" ]; then
29+
# make sure that explicitly providing the default target works
30+
cargo nextest run --target $TARGET --release
31+
cargo nextest run --features pkcs12 --target $TARGET
32+
cargo nextest run --features pkcs12_rc2 --target $TARGET
33+
cargo nextest run --features dsa --target $TARGET
34+
cargo nextest run --features x509 --target $TARGET
35+
cargo nextest run --features ssl --target $TARGET
3536

36-
# If AES-NI is supported, test the feature
37-
if [ -n "$AES_NI_SUPPORT" ]; then
38-
cargo nextest run --features "$FEAT"force_aesni_support --target $TARGET
39-
fi
37+
# If AES-NI is supported, test the feature
38+
if [ -n "$AES_NI_SUPPORT" ]; then
39+
cargo nextest run --features force_aesni_support --target $TARGET
40+
fi
4041

41-
# no_std tests only are able to run on x86 platform
42-
if [ "$TARGET" == "x86_64-unknown-linux-gnu" ] || [[ "$TARGET" =~ ^x86_64-pc-windows- ]]; then
43-
cargo nextest run --no-default-features --features "$FEAT"no_std_deps,rdrand,time --target $TARGET
44-
cargo nextest run --no-default-features --features "$FEAT"no_std_deps --target $TARGET
45-
fi
46-
else
47-
cargo +$RUST_VERSION test --no-run --features "$FEAT" --target=$TARGET
42+
# no_std tests only are able to run on x86 platform
43+
if [ "$TARGET" == "x86_64-unknown-linux-gnu" ] || [[ "$TARGET" =~ ^x86_64-pc-windows- ]]; then
44+
cargo nextest run --no-default-features --features ssl,no_std_deps,rdrand,time --target $TARGET
45+
cargo nextest run --no-default-features --features x509,no_std_deps,rdrand,time --target $TARGET
46+
cargo nextest run --no-default-features --features no_std_deps --target $TARGET
4847
fi
49-
done
48+
else
49+
cargo +$TRAVIS_RUST_VERSION test --no-run --target=$TARGET
50+
cargo +$TRAVIS_RUST_VERSION test --no-run --features ssl --target=$TARGET
51+
cargo +$TRAVIS_RUST_VERSION test --no-run --features x509 --target=$TARGET
52+
fi
5053

5154
if [ "$TARGET" == "x86_64-apple-darwin" ]; then
5255
cargo nextest run --no-default-features --features no_std_deps --target $TARGET

0 commit comments

Comments
 (0)