aboutsummaryrefslogtreecommitdiffstats
path: root/util/hpcReport.sh
blob: 9348a46a721a0ac527631d950207ee6fc67eeb1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

if [ ! -e xmonad.cabal ]; then
  echo "run in the same dir as xmonad.cabal after having run

      cabal configure --enable-tests --enable-library-coverage; cabal test

        "
  exit 1
fi

for action in markup report; do
  hpc $action \
    --exclude=Instances \
    --exclude=Utils \
    --exclude=Main \
    $(find tests/Properties -name '*.hs' | sed -e 's_/_._g' -e 's_.hs$__' -e 's_^tests._--exclude=_' ) \
    --hpcdir=dist/hpc/mix/xmonad-0.12/  \
    dist/hpc/tix/properties/properties.tix
done