Browse Source

fix tests

pull/366/head
Ethan Buchman 8 years ago
parent
commit
ba7ca4f372
3 changed files with 6 additions and 1 deletions
  1. +1
    -1
      test/p2p/kill_all/check_peers.sh
  2. +2
    -0
      test/test.sh
  3. +3
    -0
      test/test_libs.sh

+ 1
- 1
test/p2p/kill_all/check_peers.sh View File

@ -4,7 +4,7 @@ set -eu
NUM_OF_PEERS=$1
# how many attempts for each peer to catch up by height
MAX_ATTEMPTS_TO_CATCH_UP=10
MAX_ATTEMPTS_TO_CATCH_UP=20
echo "Waiting for nodes to come online"
set +e


+ 2
- 0
test/test.sh View File

@ -10,6 +10,8 @@ bash ./test/docker/build.sh
echo ""
echo "* running go tests and app tests in docker container"
# sometimes its helpful to mount the local test folder
# -v $GOPATH/src/github.com/tendermint/tendermint/test:/go/src/github.com/tendermint/tendermint/test
docker run --name run_test -t tester bash test/run_test.sh
# copy the coverage results out of docker container


+ 3
- 0
test/test_libs.sh View File

@ -28,17 +28,20 @@ for lib in "${LIBS_GO_TEST[@]}"; do
fi
done
DIR=`pwd`
for lib in "${LIBS_MAKE_TEST[@]}"; do
# checkout vendored version of lib
bash scripts/glide/checkout.sh $GLIDE $lib
echo "Testing $lib ..."
cd $GOPATH/src/github.com/tendermint/$lib
make test
if [[ "$?" != 0 ]]; then
echo "FAIL"
exit 1
fi
cd $DIR
done
echo ""


Loading…
Cancel
Save