run_test.sh 243 B

123456789101112
  1. #!/bin/bash
  2. cd `dirname $0`
  3. DIRS=`git grep -l 'func Test' | xargs dirname | sort -u`
  4. for DIR in $DIRS
  5. do
  6. echo
  7. echo "dir: $DIR"
  8. echo "======================================"
  9. pushd $DIR >/dev/null
  10. go test -v || exit 1
  11. popd >/dev/null
  12. done