diff options
author | Adam Vogt <vogt.adam@gmail.com> | 2014-05-03 05:41:25 +0200 |
---|---|---|
committer | Adam Vogt <vogt.adam@gmail.com> | 2014-05-03 05:41:25 +0200 |
commit | f416ef831830fead993c259c0b0f528b40028c97 (patch) | |
tree | 553c872b9b9acb66eb193912ee8cd21314c59bf3 | |
parent | 81a2d0bb75740bf79f6446d38a2aaf6c2e7834f6 (diff) | |
download | xmonad-f416ef831830fead993c259c0b0f528b40028c97.tar.gz xmonad-f416ef831830fead993c259c0b0f528b40028c97.tar.xz xmonad-f416ef831830fead993c259c0b0f528b40028c97.zip |
make hpc report cover the testsuite too
Ignore-this: 1d366d12c23850236fc1df16e42a2b74
darcs-hash:20140503034125-1499c-ee9e86bd0b06958f39c464cda7d21eaefeab5711.gz
-rwxr-xr-x | util/hpcReport.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/util/hpcReport.sh b/util/hpcReport.sh index 67252cf..ab934b3 100755 --- a/util/hpcReport.sh +++ b/util/hpcReport.sh @@ -16,14 +16,17 @@ propsExclude=$(find tests/Properties -name '*.hs' \ | sed -e 's_/_._g' -e 's_.hs$__' -e 's_^tests._--exclude=_' ) hpcFlags=" - --exclude=Instances - --exclude=Utils - --exclude=Main - $propsExclude - --hpcdir=dist/hpc/mix/xmonad-0.12/ + --hpcdir=dist/hpc/mix/ dist/hpc/tix/properties/properties.tix " + +if [[ ! (-e dist/hpc/mix/Main.mix) ]]; then + mv dist/hpc/mix/properties/* dist/hpc/mix/ + mv dist/hpc/mix/xmonad-*/xmonad-*/* dist/hpc/mix/xmonad-*/ +fi + + hpc markup --destdir=dist/hpc $hpcFlags > /dev/null echo "see dist/hpc/hpc_index.html " |