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.

34 lines
728 B

7 years ago
7 years ago
7 years ago
  1. #! /bin/bash
  2. set -ex
  3. export PATH="$GOBIN:$PATH"
  4. # Get the parent directory of where this script is.
  5. SOURCE="${BASH_SOURCE[0]}"
  6. while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
  7. DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
  8. ####################
  9. # libs we depend on
  10. ####################
  11. # All libs should define `make test` and `make get_vendor_deps`
  12. LIBS=(tmlibs go-wire go-crypto abci)
  13. for lib in "${LIBS[@]}"; do
  14. # checkout vendored version of lib
  15. bash scripts/dep_utils/checkout.sh "$lib"
  16. echo "Testing $lib ..."
  17. cd "$GOPATH/src/github.com/tendermint/$lib"
  18. make get_tools
  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"