mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-17 04:43:47 -07:00
put hpc reports in dist/hpc/
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ ! -e xmonad.cabal ]; then
|
set -e
|
||||||
|
|
||||||
|
if [[ ! ( -e xmonad.cabal && -e dist/hpc/tix/properties/properties.tix ) ]]; then
|
||||||
echo "run in the same dir as xmonad.cabal after having run
|
echo "run in the same dir as xmonad.cabal after having run
|
||||||
|
|
||||||
cabal configure --enable-tests --enable-library-coverage; cabal test
|
cabal configure --enable-tests --enable-library-coverage; cabal test
|
||||||
@@ -9,12 +11,20 @@ if [ ! -e xmonad.cabal ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for action in markup report; do
|
|
||||||
hpc $action \
|
propsExclude=$(find tests/Properties -name '*.hs' \
|
||||||
--exclude=Instances \
|
| sed -e 's_/_._g' -e 's_.hs$__' -e 's_^tests._--exclude=_' )
|
||||||
--exclude=Utils \
|
|
||||||
--exclude=Main \
|
hpcFlags="
|
||||||
$(find tests/Properties -name '*.hs' | sed -e 's_/_._g' -e 's_.hs$__' -e 's_^tests._--exclude=_' ) \
|
--exclude=Instances
|
||||||
--hpcdir=dist/hpc/mix/xmonad-0.12/ \
|
--exclude=Utils
|
||||||
dist/hpc/tix/properties/properties.tix
|
--exclude=Main
|
||||||
done
|
$propsExclude
|
||||||
|
--hpcdir=dist/hpc/mix/xmonad-0.12/
|
||||||
|
dist/hpc/tix/properties/properties.tix
|
||||||
|
"
|
||||||
|
|
||||||
|
hpc markup --destdir=dist/hpc $hpcFlags > /dev/null
|
||||||
|
echo "see dist/hpc/hpc_index.html
|
||||||
|
"
|
||||||
|
hpc report $hpcFlags
|
||||||
|
Reference in New Issue
Block a user