You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
817 B

  1. #! /bin/bash
  2. # set glide.lock path
  3. if [[ "$GLIDE" == "" ]]; then
  4. GLIDE=$GOPATH/src/github.com/tendermint/tendermint/glide.lock
  5. fi
  6. # get vendored commit for given lib
  7. ####################
  8. # libs we depend on
  9. ####################
  10. LIBS_GO_TEST=(go-clist go-common go-config go-crypto go-db go-events go-merkle go-p2p)
  11. LIBS_MAKE_TEST=(go-rpc go-wire tmsp)
  12. for lib in "${LIBS_GO_TEST[@]}"; do
  13. # checkout vendored version of lib
  14. bash scripts/glide/checkout.sh $GLIDE $lib
  15. echo "Testing $lib ..."
  16. go test --race github.com/tendermint/$lib/...
  17. if [[ "$?" != 0 ]]; then
  18. echo "FAIL"
  19. exit 1
  20. fi
  21. done
  22. for lib in "${LIBS_MAKE_TEST[@]}"; do
  23. getDep $lib
  24. echo "Testing $lib ..."
  25. cd $GOPATH/src/github.com/tendermint/$lib
  26. make test
  27. if [[ "$?" != 0 ]]; then
  28. echo "FAIL"
  29. exit 1
  30. fi
  31. done
  32. echo ""
  33. echo "PASS"