Browse Source

test: test_libs all use Makefile

pull/455/head
Ethan Buchman 8 years ago
parent
commit
098646c5ff
1 changed files with 3 additions and 17 deletions
  1. +3
    -17
      test/test_libs.sh

+ 3
- 17
test/test_libs.sh View File

@ -12,23 +12,8 @@ fi
# libs we depend on
####################
# some libs are tested with go, others with make
# TODO: should be all make (post repo merge)
LIBS_GO_TEST=(tmlibs go-crypto)
LIBS_MAKE_TEST=(go-wire abci)
for lib in "${LIBS_GO_TEST[@]}"; do
# checkout vendored version of lib
bash scripts/glide/checkout.sh "$GLIDE" "$lib"
echo "Testing $lib ..."
go test -v --race "github.com/tendermint/$lib/..."
if [[ "$?" != 0 ]]; then
echo "FAIL"
exit 1
fi
done
# All libs should define `make test` and `make get_vendor_deps`
LIBS_TEST=(tmlibs go-wire go-crypto abci)
DIR=$(pwd)
for lib in "${LIBS_MAKE_TEST[@]}"; do
@ -38,6 +23,7 @@ for lib in "${LIBS_MAKE_TEST[@]}"; do
echo "Testing $lib ..."
cd "$GOPATH/src/github.com/tendermint/$lib"
make get_vendor_deps
make test
if [[ "$?" != 0 ]]; then
echo "FAIL"


Loading…
Cancel
Save