-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
# | ||
# run_integration_test.sh is a wrapper around the log_prep and run_test functions. | ||
# It's intended to be used by the Travis CT/Trillian integration test only, | ||
# and will go away when we migrate off of Travis. | ||
set -e | ||
|
||
INTEGRATION_DIR="$( cd "$( dirname "$0" )" && pwd )" | ||
. "${INTEGRATION_DIR}"/functions.sh | ||
|
||
|
||
echo "Launching core Trillian log components" | ||
log_prep_test 1 1 | ||
|
||
# Cleanup for the Trillian components | ||
TO_DELETE="${TO_DELETE} ${ETCD_DB_DIR}" | ||
TO_KILL+=(${LOG_SIGNER_PIDS[@]}) | ||
TO_KILL+=(${RPC_SERVER_PIDS[@]}) | ||
TO_KILL+=(${ETCD_PID}) | ||
|
||
export TRILLIAN_LOG_SERVERS="${RPC_SERVERS}" | ||
export TRILLIAN_LOG_SERVER_1="${RPC_SERVER_1}" | ||
|
||
echo "Running test" | ||
run_test "$1" "$2" | ||
RESULT=$? | ||
|
||
log_stop_test | ||
TO_KILL=() | ||
|
||
if [ $RESULT != 0 ]; then | ||
sleep 1 | ||
echo "Server log:" | ||
echo "--------------------" | ||
cat "${TMPDIR}"/trillian_log_server.INFO | ||
echo "Signer log:" | ||
echo "--------------------" | ||
cat "${TMPDIR}"/trillian_log_signer.INFO | ||
fi | ||
|
||
exit $RESULT |