diff options
author | Joey Hess <joey@kitenet.net> | 2011-01-04 21:05:31 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-01-04 21:05:31 -0400 |
commit | 759e860e4b6c514b74cafb2c0dd9c52c4d59316b (patch) | |
tree | ea09994423b910f2f1f91d46f9e84085f7088c8f /Makefile | |
parent | f1b747e6d9fae2b365f65fd43c6295da503218bd (diff) |
add testcoverage target using hpc
added a test for key read and show
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |