]> gitweb.michael.orlitzky.com - dead/htsn.git/blobdiff - htsn.cabal
Add a Tasty test suite.
[dead/htsn.git] / htsn.cabal
index ed97657a6ce55d4471514145ff76bde32a2cce77..30bdb9bcca5d90180def22df1d9e93340d1ac102 100644 (file)
@@ -24,6 +24,8 @@ executable htsn
     filepath                    == 1.3.*,
     hxt                         == 9.3.*,
     network                     == 2.4.*,
+    tasty                       == 0.5.*,
+    tasty-hunit                 == 0.4.*,
     transformers                == 0.3.*,
     unix                        == 2.6.*
 
@@ -55,3 +57,46 @@ executable htsn
     -auto-all
     -caf-all
 
+
+
+test-suite testsuite
+  type: exitcode-stdio-1.0
+  hs-source-dirs: src test
+  main-is: TestSuite.hs
+  build-depends:
+    ansi-terminal               == 0.6.*,
+    base                        == 4.*,
+    cmdargs                     >= 0.10.6,
+    configurator                == 0.2.*,
+    directory                   == 1.2.*,
+    filepath                    == 1.3.*,
+    hxt                         == 9.3.*,
+    network                     == 2.4.*,
+    tasty                       == 0.5.*,
+    tasty-hunit                 == 0.4.*,
+    transformers                == 0.3.*,
+    unix                        == 2.6.*
+
+  -- 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
+    -rtsopts
+    -threaded
+    -optc-O3
+    -optc-march=native
+    -O2
+
+
+source-repository head
+  type: git
+  location: http://michael.orlitzky.com/git/htsn.git
+  branch: master