]> git.saurik.com Git - apt.git/blob - triehash/tests/run-tests.sh
Don't download "optional" files not in Release :/.
[apt.git] / triehash / tests / run-tests.sh
1 #!/bin/sh
2 DIR=$(dirname $(readlink -f $0))
3
4 # Let's go into triehash.pl's dir
5 cd $(dirname "$DIR")
6
7 rm -rf cover_db
8
9 count=$(cd "$DIR" && echo test-* | wc -w)
10 i=1
11
12 for test in $DIR/test-*; do
13 echo "[$i/$count] Running testcase $test"
14 if ! $test > test.summary 2>&1; then
15 cat test.summary
16 exit 1
17 fi
18 i=$((i + 1))
19 done
20
21
22 cover