]> gitweb.michael.orlitzky.com - hath.git/blobdiff - hath.cabal
Use Cabal test integration.
[hath.git] / hath.cabal
index 79639ced92452e92ec6e82031e74e5fdd878c6cb..23f6cc47724ed7432f960e9ff526a3eb0e847f27 100644 (file)
@@ -1,5 +1,5 @@
 name:           hath
-version:        0.0
+version:        0.0.1
 cabal-version:  >= 1.8
 author:         Michael Orlitzky
 maintainer:    Michael Orlitzky <michael@orlitzky.com>
@@ -12,7 +12,10 @@ executable hath
   build-depends:
     base                        == 4.*,
     HUnit                       == 1.2.*,
-    QuickCheck                  == 2.4.*
+    QuickCheck                  == 2.6.*,
+    test-framework              == 0.8.*,
+    test-framework-hunit        == 0.3.*,
+    test-framework-quickcheck2  == 0.3.*
 
   main-is:
     Main.hs
@@ -44,3 +47,42 @@ executable hath
     -prof
     -auto-all
     -caf-all
+
+
+test-suite testsuite
+  type: exitcode-stdio-1.0
+  hs-source-dirs: src test
+  main-is: TestSuite.hs
+  build-depends:
+    base                        == 4.*,
+    HUnit                       == 1.2.*,
+    QuickCheck                  == 2.6.*,
+    test-framework              == 0.8.*,
+    test-framework-hunit        == 0.3.*,
+    test-framework-quickcheck2  == 0.3.*
+
+  -- It's not entirely clear to me why I have to reproduce all of this.
+  ghc-options:
+    -Wall
+    -fwarn-hi-shadowing
+    -fwarn-missing-signatures
+    -fwarn-name-shadowing
+    -fwarn-orphans
+    -fwarn-type-defaults
+    -fwarn-tabs
+    -fwarn-incomplete-record-updates
+    -fwarn-monomorphism-restriction
+    -fwarn-unused-do-bind
+    -funbox-strict-fields
+    -fexcess-precision
+    -fno-spec-constr-count
+    -rtsopts
+    -threaded
+    -optc-O3
+    -optc-march=native
+    -O2
+
+source-repository head
+  type: git
+  location: http://michael.orlitzky.com/git/hath.git
+  branch: master