-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert temporarily commented logic in PrepareRelease. Fix client name…
… bug. Add convenience script for running every smoke test.
- Loading branch information
Sichan Yoo
committed
Oct 16, 2024
1 parent
cc056bc
commit 19914a1
Showing
3 changed files
with
59 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
# This is a convenience script for developers for running every smoke test under SmokeTests/. | ||
# The script must be run from aws-sdk-swift/, the directory containing SmokeTests/. | ||
|
||
# cd into test module dir | ||
cd SmokeTests/ || { echo "ERROR: Failed to change directory to SmokeTests."; exit 1; } | ||
|
||
# Build and discard output for clean log | ||
echo "INFO: Building SmokeTests module..." | ||
swift build > /dev/null 2>&1 | ||
|
||
# Header print helpers | ||
print_header() { | ||
print_spacer | ||
local header=$1 | ||
echo "##### $header #####" | ||
print_spacer | ||
} | ||
|
||
print_spacer() { | ||
echo "" | ||
} | ||
|
||
# Build and run each and every test runner; save result to results array | ||
print_header "TEST RUNS" | ||
results=() | ||
for runnerName in ./*; do | ||
if [ -d "$runnerName" ]; then | ||
swift run "${runnerName#./}" | ||
if [ $? -eq 0 ]; then | ||
# Record success | ||
results+=("SUCCESS: ${runnerName#./}") | ||
else | ||
# record failure | ||
results+=("FAILURE: ${runnerName#./}") | ||
fi | ||
print_spacer | ||
fi | ||
done | ||
|
||
# Print result summary | ||
print_header "TEST RESULT SUMMARY" | ||
for result in "${results[@]}"; do | ||
echo "$result" | ||
done |