run-tests.sh 356 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. DIR=$(dirname $(readlink -f $0))
  3. # Let's go into triehash.pl's dir
  4. cd $(dirname "$DIR")
  5. rm -rf cover_db
  6. count=$(cd "$DIR" && echo test-* | wc -w)
  7. i=1
  8. for test in $DIR/test-*; do
  9. echo "[$i/$count] Running testcase $test"
  10. if ! $test > test.summary 2>&1; then
  11. cat test.summary
  12. exit 1
  13. fi
  14. i=$((i + 1))
  15. done
  16. cover