Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9668 from EOSIO/zach-lr-rabbit-boxed
Browse files Browse the repository at this point in the history
Restore "rabbit-server -detached" setup to long-running-test.sh
  • Loading branch information
kj4ezj authored Nov 16, 2020
2 parents fb04c93 + 30b3b82 commit 7fb6e3f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/long-running-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -eo pipefail
# variables
echo "--- $([[ "$BUILDKITE" == 'true' ]] && echo ':evergreen_tree: ')Configuring Environment"
GIT_ROOT="$(dirname $BASH_SOURCE[0])/.."
RABBITMQ_SERVER_DETACHED='rabbitmq-server -detached'
[[ -z "$TEST" ]] && export TEST="$1"
if [[ "$(uname)" == 'Linux' ]]; then
. /etc/os-release
Expand All @@ -13,6 +14,9 @@ fi
cd "$GIT_ROOT/build"
# tests
if [[ -z "$TEST" ]]; then # run all serial tests
echo "$ $RABBITMQ_SERVER_DETACHED"
eval $RABBITMQ_SERVER_DETACHED
sleep 10
# count tests
echo "+++ $([[ "$BUILDKITE" == 'true' ]] && echo ':microscope: ')Running Long-Running Tests"
TEST_COUNT=$(ctest -N -L 'long_running_tests' | grep -i 'Total Tests: ' | cut -d ':' -f '2' | awk '{print $1}')
Expand All @@ -30,6 +34,11 @@ if [[ -z "$TEST" ]]; then # run all serial tests
EXIT_STATUS='1'
fi
else # run specific serial test
if [[ "$(echo "$TEST" | grep -ci 'rabbit')" != '0' ]]; then
echo "$ $RABBITMQ_SERVER_DETACHED"
eval $RABBITMQ_SERVER_DETACHED
sleep 10
fi
# ensure test exists
echo "+++ $([[ "$BUILDKITE" == 'true' ]] && echo ':microscope: ')Running $TEST"
TEST_COUNT=$(ctest -N -R "^$TEST$" | grep -i 'Total Tests: ' | cut -d ':' -f '2' | awk '{print $1}')
Expand Down

0 comments on commit 7fb6e3f

Please sign in to comment.