test: test_libs all use Makefile
This commit is contained in:
parent
0e5cd6dc2f
commit
098646c5ff
|
@ -12,23 +12,8 @@ fi
|
||||||
# libs we depend on
|
# libs we depend on
|
||||||
####################
|
####################
|
||||||
|
|
||||||
# some libs are tested with go, others with make
|
# All libs should define `make test` and `make get_vendor_deps`
|
||||||
# TODO: should be all make (post repo merge)
|
LIBS_TEST=(tmlibs go-wire go-crypto abci)
|
||||||
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
|
|
||||||
|
|
||||||
DIR=$(pwd)
|
DIR=$(pwd)
|
||||||
for lib in "${LIBS_MAKE_TEST[@]}"; do
|
for lib in "${LIBS_MAKE_TEST[@]}"; do
|
||||||
|
@ -38,6 +23,7 @@ for lib in "${LIBS_MAKE_TEST[@]}"; do
|
||||||
|
|
||||||
echo "Testing $lib ..."
|
echo "Testing $lib ..."
|
||||||
cd "$GOPATH/src/github.com/tendermint/$lib"
|
cd "$GOPATH/src/github.com/tendermint/$lib"
|
||||||
|
make get_vendor_deps
|
||||||
make test
|
make test
|
||||||
if [[ "$?" != 0 ]]; then
|
if [[ "$?" != 0 ]]; then
|
||||||
echo "FAIL"
|
echo "FAIL"
|
||||||
|
|
Loading…
Reference in New Issue