Skip to content

Commit

Permalink
not use nextest
Browse files Browse the repository at this point in the history
  • Loading branch information
Taowyoo committed Mar 8, 2024
1 parent e54f7bd commit 232f4c3
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,45 +28,45 @@ case "$TRAVIS_RUST_VERSION" in
# The SGX target cannot be run under test like a ELF binary
if [ "$TARGET" != "x86_64-fortanix-unknown-sgx" ]; then
# make sure that explicitly providing the default target works
cargo nextest run --features "$FEAT" --target $TARGET --release
cargo nextest run --features "$FEAT"pkcs12 --target $TARGET
cargo nextest run --features "$FEAT"pkcs12_rc2 --target $TARGET
cargo nextest run --features "$FEAT"dsa --target $TARGET
cargo test run --features "$FEAT" --target $TARGET --release
cargo test run --features "$FEAT"pkcs12 --target $TARGET
cargo test run --features "$FEAT"pkcs12_rc2 --target $TARGET
cargo test run --features "$FEAT"dsa --target $TARGET

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

# no_std tests only are able to run on x86 platform
if [ "$TARGET" == "x86_64-unknown-linux-gnu" ] || [[ "$TARGET" =~ ^x86_64-pc-windows- ]]; then
cargo nextest run --no-default-features --features "$FEAT"no_std_deps,rdrand,time --target $TARGET
cargo nextest run --no-default-features --features "$FEAT"no_std_deps --target $TARGET
cargo test run --no-default-features --features "$FEAT"no_std_deps,rdrand,time --target $TARGET
cargo test run --no-default-features --features "$FEAT"no_std_deps --target $TARGET
fi
else
cargo +$TRAVIS_RUST_VERSION test --no-run --features "$FEAT" --target=$TARGET
fi
done

if [ "$TARGET" == "x86_64-apple-darwin" ]; then
cargo nextest run --no-default-features --features no_std_deps --target $TARGET
cargo test run --no-default-features --features no_std_deps --target $TARGET
fi
# special case: mbedtls should compile successfully on windows only with `std` feature
if [[ "$TARGET" =~ ^x86_64-pc-windows- ]]; then
cargo nextest run --no-default-features --features std --target $TARGET
cargo test run --no-default-features --features std --target $TARGET
fi

# The SGX target cannot be run under test like a ELF binary
if [ "$TARGET" != "x86_64-fortanix-unknown-sgx" ]; then
cargo nextest run --test async_session --features=async-rt,ssl --target $TARGET
cargo nextest run --test async_session --features=async-rt,ssl,legacy_protocols --target $TARGET
cargo nextest run chrono --features=chrono,ssl,x509 --target $TARGET
cargo test run --test async_session --features=async-rt,ssl --target $TARGET
cargo test run --test async_session --features=async-rt,ssl,legacy_protocols --target $TARGET
cargo test run chrono --features=chrono,ssl,x509 --target $TARGET

# If zlib is installed, test the zlib feature
if [ -n "$ZLIB_INSTALLED" ]; then
cargo nextest run --features zlib --target $TARGET
cargo nextest run --test async_session --features=async-rt,ssl,zlib --target $TARGET
cargo nextest run --test async_session --features=async-rt,ssl,zlib,legacy_protocols --target $TARGET
cargo test run --features zlib --target $TARGET
cargo test run --test async_session --features=async-rt,ssl,zlib --target $TARGET
cargo test run --test async_session --features=async-rt,ssl,zlib,legacy_protocols --target $TARGET
fi
fi
;;
Expand Down

0 comments on commit 232f4c3

Please sign in to comment.