-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2443 from iotaledger/fix/reboot-cluster-tests
Fix reboot cluster tests
- Loading branch information
Showing
16 changed files
with
238 additions
and
215 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
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
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,29 @@ | ||
#!/bin/bash | ||
CURRENT_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
PARENT_DIR="$( builtin cd ${CURRENT_DIR}/.. >/dev/null 2>&1 ; pwd -P )" | ||
cd ${PARENT_DIR} | ||
|
||
OUTPUT_TO_FILE=false | ||
if [[ $1 = "-f" ]]; then | ||
OUTPUT_TO_FILE=true | ||
fi | ||
|
||
# check if richgo can be used to print colorful outputs | ||
GO_EXECUTABLE=go | ||
if [ "$OUTPUT_TO_FILE" = false ] && [ -x "$(command -v richgo)" ]; then | ||
GO_EXECUTABLE=richgo | ||
fi | ||
|
||
FILES=$(go list ./tools/cluster/... | grep -v github.com/iotaledger/wasp/contracts/wasm) | ||
${GO_EXECUTABLE} clean -testcache | ||
|
||
make wasm | ||
make install | ||
|
||
if [ "$OUTPUT_TO_FILE" = false ]; then | ||
${GO_EXECUTABLE} test -p 1 -failfast -count=1 -timeout=90m ${FILES} | ||
else | ||
${GO_EXECUTABLE} test -p 1 -failfast -count=1 -timeout=90m -v ${FILES} 2>&1 | tee tests_output.log | ||
fi | ||
|
||
cd ${CURRENT_DIR} |
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
Oops, something went wrong.