@@ -24,29 +24,32 @@ case "$RUST_VERSION" in
24
24
rustup target add --toolchain $RUST_VERSION $TARGET
25
25
printenv
26
26
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
35
36
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
40
41
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
48
47
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
50
53
51
54
if [ " $TARGET " == " x86_64-apple-darwin" ]; then
52
55
cargo nextest run --no-default-features --features no_std_deps --target $TARGET
0 commit comments