Browse files

Add script to generate hpc program coverage

  • Loading branch information...
1 parent 7995afd commit 49d92459f2eb40d5f650ec3ff2f8868c9dec5e75 @jaspervdj committed Oct 22, 2011
Showing with 15 additions and 1 deletion.
  1. +6 −1 .gitignore
  2. +9 −0 coverage.sh
View
7 .gitignore
@@ -1,3 +1,8 @@
-dist
*.hi
*.o
+
+.hpc
+dist
+tests/coverage
+
+tests/haskell/TestSuite
View
9 coverage.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+ghc -isrc -itests/haskell -fhpc --make tests/haskell/TestSuite.hs
+./tests//haskell/TestSuite
+mkdir -p tests/coverage
+hpc markup --destdir=tests/coverage --exclude=Main TestSuite.tix
+rm TestSuite.tix
+
+echo "Output written to tests/coverage/hpc_index.html"

0 comments on commit 49d9245

Please sign in to comment.