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.

36 lines
675 B

  1. #! /bin/bash
  2. set -e
  3. # set glide.lock path
  4. if [[ "$GLIDE" == "" ]]; then
  5. GLIDE=$GOPATH/src/github.com/tendermint/tendermint/glide.lock
  6. fi
  7. # get vendored commit for given lib
  8. ####################
  9. # libs we depend on
  10. ####################
  11. # All libs should define `make test` and `make get_vendor_deps`
  12. LIBS_TEST=(tmlibs go-wire go-crypto abci)
  13. DIR=$(pwd)
  14. for lib in "${LIBS_MAKE_TEST[@]}"; do
  15. # checkout vendored version of lib
  16. bash scripts/glide/checkout.sh "$GLIDE" "$lib"
  17. echo "Testing $lib ..."
  18. cd "$GOPATH/src/github.com/tendermint/$lib"
  19. make get_vendor_deps
  20. make test
  21. if [[ "$?" != 0 ]]; then
  22. echo "FAIL"
  23. exit 1
  24. fi
  25. cd "$DIR"
  26. done
  27. echo ""
  28. echo "PASS"