tools: fix coverage script and stats make rule

This commit is contained in:
Simon Michael 2010-05-23 22:46:40 +00:00
parent 7974b32c0f
commit 38665bd1bc
2 changed files with 8 additions and 10 deletions

View File

@ -539,7 +539,7 @@ pushbinary:
-rsync -aP $(BINARYFILENAME).gz joyful.com:/repos/hledger/website/binaries/
# show project stats useful for release notes
stats: showlastreleasedate showreleaseauthors showloc showcov showerrors showlocalchanges showreleasechanges simplebench
stats: showlastreleasedate showreleaseauthors showloc showcov showlocalchanges showreleasechanges #simplebench #showerrors
showreleaseauthors:
@echo Patch authors since last release:
@ -547,10 +547,8 @@ showreleaseauthors:
@echo
showloc:
@echo Lines of non-test code:
@sloccount `ls $(SOURCEFILES) |grep -v Tests.hs` | grep haskell:
@echo Lines of test code:
@sloccount Tests.hs | grep haskell:
@echo Lines of code including tests:
@sloccount `ls $(SOURCEFILES)` | grep haskell:
@echo
showcov:
@ -562,10 +560,10 @@ showlastreleasedate:
@darcs changes --from-tag . | tail -2
@echo
showerrors:
@echo Known errors:
@awk '/^** errors/, /^** / && !/^** errors/' NOTES | grep '^\*\*\* ' | tail +1
@echo
# showerrors:
# @echo Known errors:
# @awk '/^** errors/, /^** / && !/^** errors/' NOTES | grep '^\*\*\* ' | tail +1
# @echo
showlocalchanges:
@echo Local changes:

View File

@ -6,5 +6,5 @@ import sys, os
cov="hledgercov"
cmd, args = sys.argv[1], ' '.join(sys.argv[2:])
os.system("rm -f %s.tix" % cov)
os.system("./%s %s >/dev/null" % (cov,args))
os.system("bin/%s %s >/dev/null" % (cov,args))
os.system("hpc %s %s" % (cmd,cov))