summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDon Stewart <dons@galois.com>2008-03-22 05:16:40 +0100
committerDon Stewart <dons@galois.com>2008-03-22 05:16:40 +0100
commit6f3ab230d1334b1b519f20a6dd3686995fac6ab0 (patch)
treec1984c4de7841cd6d2f49611c7fab59147bc648f
parentf8c305ba1414f704c097771416fc74ffc4883811 (diff)
downloadmetatile-6f3ab230d1334b1b519f20a6dd3686995fac6ab0.tar
metatile-6f3ab230d1334b1b519f20a6dd3686995fac6ab0.zip
add hpc generation script
darcs-hash:20080322041640-cba2c-63c9e0a162cea3ea3eb919516c7875f2beecd29d
-rwxr-xr-xtests/coverage.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/coverage.hs b/tests/coverage.hs
new file mode 100755
index 0000000..3600951
--- /dev/null
+++ b/tests/coverage.hs
@@ -0,0 +1,10 @@
+#!/usr/bin/env runhaskell
+
+import System.Cmd
+
+-- generate appropriate .hpc files
+main = do
+ system $ "rm -rf *.tix"
+ system $ "dist/build/xmonad/xmonad --run-tests"
+ system $ "hpc markup xmonad --exclude=Main --exclude=Properties --exclude=XMonad --exclude=Paths_xmonad"
+ system $ "hpc report xmonad --exclude=Main --exclude=Properties --exclude=XMonad --exclude=Paths_xmonad"