Permalink
Browse files

Modified the test runner to do a full clean if it needs to (to ensure…

… HPC files are ready)
  • Loading branch information...
1 parent 9c3f4af commit 5aa6e5b91b5629273c28f4ef9852dc41d0baa671 Oliver Charles committed Nov 30, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 run-tests
View
9 run-tests
@@ -1 +1,8 @@
-cabal build --ghc-option=-fhpc && rm test-bookbrainz.tix && cabal test && hpc markup --exclude=Test --destdir=hpc test-bookbrainz.tix && chromium hpc/hpc_index.html
+if [ ! -e test-bookbrainz.tix ]
+then
+ cabal clean && cabal configure --enable-tests --ghc-option=-fhpc
+else
+ rm *.tix
+fi
+
+cabal build --ghc-option=-fhpc && cabal test && hpc markup --exclude=Test --destdir=hpc test-bookbrainz.tix && chromium hpc/hpc_index.html

0 comments on commit 5aa6e5b

Please sign in to comment.