File: run-tests.sh

package info (click to toggle)
triehash 0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 168 kB
  • sloc: sh: 1,161; perl: 391; makefile: 10
file content (22 lines) | stat: -rwxr-xr-x 356 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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