Skip to content

Commit

Permalink
Scripts to run HPC (program coverage) and clean up
Browse files Browse the repository at this point in the history
Something is apparently broken with hpc as used by cabal-install:

```
$ cabal configure --enable-library-coverage --enable-tests
$ cabal build
$ cabal test
[...]
Warning: Your version of HPC (0.6) does not properly handle multiple search
paths. Coverage report generation may fail unexpectedly. These issues are
addressed in version 0.7 or later (GHC 7.8 or later). The following search
paths have been abandoned: ["dist/hpc/mix/dlist-0.5"]
hpc: can not find dlist-0.5/Data.DList in ["./dist/hpc/mix/test"]
```
  • Loading branch information
spl committed Nov 14, 2013
1 parent bd4c70c commit 9139e61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hpc-clean.sh
@@ -0,0 +1,2 @@
rm -rf test test.tix .hpc *.html
find . -name '*.o' -or -name '*.hi' | xargs rm
1 change: 1 addition & 0 deletions hpc.sh
@@ -0,0 +1 @@
ghc -fhpc --make -O2 -itests tests/Main.hs -o test

0 comments on commit 9139e61

Please sign in to comment.