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.

31 lines
683 B

7 years ago
7 years ago
7 years ago
  1. #! /bin/bash
  2. set -e
  3. # Get the parent directory of where this script is.
  4. SOURCE="${BASH_SOURCE[0]}"
  5. while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
  6. DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
  7. ####################
  8. # libs we depend on
  9. ####################
  10. # All libs should define `make test` and `make get_vendor_deps`
  11. LIBS=(tmlibs go-wire go-crypto abci)
  12. for lib in "${LIBS[@]}"; do
  13. # checkout vendored version of lib
  14. bash scripts/dep_utils/checkout.sh "$lib"
  15. echo "Testing $lib ..."
  16. cd "$GOPATH/src/github.com/tendermint/$lib"
  17. make get_vendor_deps
  18. make test
  19. if [[ "$?" != 0 ]]; then
  20. echo "FAIL"
  21. exit 1
  22. fi
  23. cd "$DIR"
  24. done
  25. echo ""
  26. echo "PASS"