From 4bb4a6f93c73e0767000e0664034dbfbb37ce40f Mon Sep 17 00:00:00 2001 From: Adam Vogt Date: Fri, 2 May 2014 20:49:04 +0200 Subject: updated hpc Ignore-this: a7f72dfb7414f48c55441eda6aaa1236 darcs-hash:20140502184904-1499c-b3f8164fb4cce1e3d40feaa5f0346066d3efc7f2.gz --- util/hpcReport.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 util/hpcReport.sh (limited to 'util/hpcReport.sh') diff --git a/util/hpcReport.sh b/util/hpcReport.sh new file mode 100755 index 0000000..9348a46 --- /dev/null +++ b/util/hpcReport.sh @@ -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 -- cgit v1.2.3