[commit: packages/bytestring] ghc-head: Update builder tests and setup 'hpc'. (0a4b8dd)

git at git.haskell.org git
Fri Oct 4 08:27:55 UTC 2013


Repository : ssh://git at git.haskell.org/bytestring

On branch  : ghc-head
Link       : http://git.haskell.org/packages/bytestring.git/commitdiff/0a4b8dd742710ac7a8f8cae3e95e88b0d05aaa80

>---------------------------------------------------------------

commit 0a4b8dd742710ac7a8f8cae3e95e88b0d05aaa80
Author: Simon Meier <simon.meier at erudify.com>
Date:   Mon Sep 16 23:20:30 2013 +0200

    Update builder tests and setup 'hpc'.
    
    All tests pass and code-coverage looks good :-)


>---------------------------------------------------------------

0a4b8dd742710ac7a8f8cae3e95e88b0d05aaa80
 .gitignore                                     |    1 +
 tests/.gitignore                               |    5 +++--
 tests/Makefile                                 |   10 ++++++++++
 tests/builder/Data/ByteString/Builder/Tests.hs |    2 +-
 tests/bytestring-tests.cabal                   |    4 ++--
 5 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/.gitignore b/.gitignore
index ca6cd14..0e04aef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ cabal-dev
 dist
 dist-install
 ghc.mk
+.hsenv
diff --git a/tests/.gitignore b/tests/.gitignore
index 0f51d01..a9e5c39 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -1,2 +1,3 @@
-cabal-dev
-dist
+*.html
+*.tix
+/.hpc
diff --git a/tests/Makefile b/tests/Makefile
index 52a83f2..ffd6115 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -32,6 +32,16 @@ units-compiled:
 	time ./u
 
 # ---------------------------------------------
+# ByteString Builders
+
+hpc-builder: dist/build/test-builder/test-builder
+	rm -f test-builder.tix
+	dist/build/test-builder/test-builder
+	hpc markup test-builder.tix
+
+
+
+# ---------------------------------------------
 # QuickCheck
 
 # interpreted
diff --git a/tests/builder/Data/ByteString/Builder/Tests.hs b/tests/builder/Data/ByteString/Builder/Tests.hs
index 8362f89..bb28dc7 100644
--- a/tests/builder/Data/ByteString/Builder/Tests.hs
+++ b/tests/builder/Data/ByteString/Builder/Tests.hs
@@ -18,7 +18,7 @@ import           Control.Applicative
 import           Control.Monad.State
 import           Control.Monad.Writer
 
-import           Foreign (Word, Word8, Word64, minusPtr)
+import           Foreign (Word, Word8, minusPtr)
 import           System.IO.Unsafe (unsafePerformIO)
 
 import           Data.Char (ord, chr)
diff --git a/tests/bytestring-tests.cabal b/tests/bytestring-tests.cabal
index fabbfad..f16bff9 100644
--- a/tests/bytestring-tests.cabal
+++ b/tests/bytestring-tests.cabal
@@ -53,10 +53,10 @@ executable test-builder
                     HUnit,
                     test-framework,
                     test-framework-hunit,
-                    test-framework-quickcheck2
+                    test-framework-quickcheck2  >= 0.3
 
   cpp-options:      -DHAVE_TEST_FRAMEWORK=1
-  ghc-options:      -Wall -fwarn-tabs
+  ghc-options:      -Wall -fwarn-tabs -fhpc
 
   extensions:       CPP, ForeignFunctionInterface
                     UnliftedFFITypes,




More information about the ghc-commits mailing list