-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/test-manager-fixes' into figure-…
…out-windows10-crash
- Loading branch information
Showing
20 changed files
with
583 additions
and
364 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 was deleted.
Oops, something went wrong.
File renamed without changes.
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,68 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
cd "$SCRIPT_DIR" | ||
TEST_DIR="$SCRIPT_DIR/.." | ||
|
||
if [[ "$#" -lt 1 ]]; then | ||
echo "usage: $0 TEST_OS" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
TEST_OS=$1 | ||
|
||
PACKAGE_FOLDER="${CACHE_FOLDER}" | ||
|
||
source "$SCRIPT_DIR/test-utils.sh" | ||
|
||
echo "**********************************" | ||
echo "* Version to upgrade from: $LATEST_STABLE_RELEASE" | ||
echo "* Version to test: $CURRENT_VERSION" | ||
echo "**********************************" | ||
|
||
|
||
if [[ -z "${ACCOUNT_TOKENS+x}" ]]; then | ||
echo "'ACCOUNT_TOKENS' must be specified" 1>&2 | ||
exit 1 | ||
fi | ||
if ! readarray -t tokens < "${ACCOUNT_TOKENS}"; then | ||
echo "Specify account tokens in 'ACCOUNT_TOKENS' file" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
mkdir -p "$SCRIPT_DIR/.ci-logs" | ||
echo "$CURRENT_VERSION" > "$SCRIPT_DIR/.ci-logs/last-version.log" | ||
|
||
|
||
echo "**********************************" | ||
echo "* Downloading app packages" | ||
echo "**********************************" | ||
|
||
# Clean up old packages | ||
find "$PACKAGE_FOLDER" -type f -mtime +5 -delete || true | ||
|
||
|
||
nice_time download_app_package "$LATEST_STABLE_RELEASE" "$TEST_OS" | ||
nice_time download_app_package "$CURRENT_VERSION" "$TEST_OS" | ||
nice_time download_e2e_executable "$CURRENT_VERSION" "$TEST_OS" | ||
|
||
echo "**********************************" | ||
echo "* Building test manager" | ||
echo "**********************************" | ||
|
||
cargo build -p test-manager | ||
|
||
echo "**********************************" | ||
echo "* Running tests" | ||
echo "**********************************" | ||
|
||
mkdir -p "$TEST_DIR/.ci-logs/os/" | ||
rm -f "$TEST_DIR/.ci-logs/${TEST_OS}_report" | ||
|
||
set -o pipefail | ||
|
||
APP_PACKAGE=$(get_app_filename "$CURRENT_VERSION" "$TEST_OS") | ||
APP_PACKAGE_TO_UPGRADE_FROM=$(get_app_filename "$LATEST_STABLE_RELEASE" "$TEST_OS") | ||
ACCOUNT_TOKEN=${tokens[0]} RUST_LOG=debug nice_time run_tests_for_os "${TEST_OS}" |
Oops, something went wrong.