diff options
author | Julian Andres Klode <jak@debian.org> | 2016-11-22 22:57:46 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-11-22 22:57:46 +0100 |
commit | e07f3d5a9ed2870a0e2909cc1e5e55e826086c53 (patch) | |
tree | 74494904dc84d7b542e5254a92255df1ba68444f /triehash/tests/run-tests.sh | |
parent | 45ecab4458c4015b7635042064165c229e099c28 (diff) | |
parent | e2073b0276226b625897ef475f225bf8f508719e (diff) |
Merge commit 'e2073b0276226b625897ef475f225bf8f508719e' as 'triehash'
Diffstat (limited to 'triehash/tests/run-tests.sh')
-rwxr-xr-x | triehash/tests/run-tests.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/triehash/tests/run-tests.sh b/triehash/tests/run-tests.sh new file mode 100755 index 000000000..b9c1ec309 --- /dev/null +++ b/triehash/tests/run-tests.sh @@ -0,0 +1,22 @@ +#!/bin/sh +DIR=$(dirname $(readlink -f $0)) + +# Let's go into triehash.pl's dir +cd $(dirname "$DIR") + +rm -rf cover_db + +count=$(cd "$DIR" && echo test-* | wc -w) +i=1 + +for test in $DIR/test-*; do + echo "[$i/$count] Running testcase $test" + if ! $test > test.summary 2>&1; then + cat test.summary + exit 1 + fi + i=$((i + 1)) +done + + +cover |