From 6f3ab230d1334b1b519f20a6dd3686995fac6ab0 Mon Sep 17 00:00:00 2001 From: Don Stewart Date: Sat, 22 Mar 2008 05:16:40 +0100 Subject: add hpc generation script darcs-hash:20080322041640-cba2c-63c9e0a162cea3ea3eb919516c7875f2beecd29d --- tests/coverage.hs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 tests/coverage.hs 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" -- cgit v1.2.3