summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-01-04 21:05:31 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-01-04 21:05:31 -0400
commit759e860e4b6c514b74cafb2c0dd9c52c4d59316b (patch)
treeea09994423b910f2f1f91d46f9e84085f7088c8f /Makefile
parentf1b747e6d9fae2b365f65fd43c6295da503218bd (diff)
add testcoverage target using hpc
added a test for key read and show
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2f1fd05b9..8d124f143 100644
--- a/Makefile
+++ b/Makefile
@@ -33,6 +33,13 @@ test:
$(GHCMAKE) test
./test
+testcoverage:
+ rm -f test.tix test
+ ghc -odir build/test -hidir build/test $(GHCFLAGS) --make -fhpc test
+ ./test
+ hpc report test --exclude=Main --exclude=QC
+ hpc markup test --exclude=Main --exclude=QC --destdir=.hpc
+
# If ikiwiki is available, build static html docs suitable for being
# shipped in the software package.
ifeq ($(shell which ikiwiki),)
@@ -49,7 +56,7 @@ docs: $(mans)
--exclude='news/.*'
clean:
- rm -rf build $(bins) $(mans) test configure SysConfig.hs
+ rm -rf build $(bins) $(mans) test configure SysConfig.hs *.tix .hpc
rm -rf doc/.ikiwiki html
.PHONY: $(bins) test install