File: testall

package info (click to toggle)
haskell-shelly 1.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 428 kB
  • sloc: haskell: 2,813; sh: 52; makefile: 4
file content (57 lines) | stat: -rw-r--r-- 760 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh

set -e

if [ -z "$DEBUG" ]; then
    export DEBUG=shelly-testsuite
fi

SUITE=./dist/build/shelly-testsuite/shelly-testsuite

rm -f shelly-testsuite.tix
cabal build

if [ ! -f $SUITE ]; then
    cat <<EOF
Testsuite executable not found, please run:
    cabal configure --enable-tests
then
    cabal build
Note this script should be run from the root of the checkout
EOF
    exit;
fi

$SUITE $*

DIR=dist/hpc

rm -Rf $DIR
mkdir -p $DIR

EXCLUDES='TestMain
CopySpec
EnvSpec
FailureSpec
FindSpec
Help
Main
MoveSpec
ReadFileSpec
WhichSpec
WriteSpec
RunSpec
SshSpec
'

EXCL=""

for m in $EXCLUDES; do
    EXCL="$EXCL --exclude=$m"
done

hpc markup $EXCL --destdir=$DIR shelly-testsuite >/dev/null 2>&1

cat <<EOF
Test coverage report written to $DIR.
EOF