Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore ENABLE_SMOKETESTS for running smoketests #3799

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions tools/ci-scripts/check-aws-sdk-services
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,23 @@
# SPDX-License-Identifier: Apache-2.0
#

C_YELLOW='\033[1;33m'
C_RESET='\033[0m'

set -eux
cd aws-sdk

# Invoking `cargo test` at the root directory implicitly checks for the validity
# of the top-level `Cargo.toml`
cargo test --all-features
ENABLE_SMOKETESTS="${ENABLE_SMOKETESTS:-false}"

# Check if the $ENABLE_SMOKETESTS environment variable is set
if [ "$ENABLE_SMOKETESTS" = "true" ]; then
# Invoking `cargo test` at the root directory implicitly checks for the validity
# of the top-level `Cargo.toml`
echo "${C_YELLOW}## Running smoketests...${C_RESET}"
RUSTFLAGS="--cfg smoketests" cargo test --all-features
else
cargo test --all-features
fi

for test_dir in tests/*; do
if [ -f "${test_dir}/Cargo.toml" ]; then
Expand Down