updated hpc

This commit is contained in:
Adam Vogt
2014-05-02 18:49:04 +00:00
parent 4026075bc6
commit 1da1e2e21e
2 changed files with 20 additions and 10 deletions

20
util/hpcReport.sh Normal file
View File

@@ -0,0 +1,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