]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - spline3.cabal
Remove the test-framework-doctest dependency.
[spline3.git] / spline3.cabal
index e65f0cc7975745521d9898b114b3a8cd847ed493..a1be0aa2db1d429856f997cfff92864bb32a926f 100644 (file)
@@ -16,21 +16,21 @@ flag LLVM
   description: Build with LLVM
   default:     False
 
+
 executable spline3
   build-depends:
     base                        == 4.5.*,
-    doctest                     == 0.7.*,
     filepath                    == 1.*,
-    HUnit                       == 1.2.*,
-    QuickCheck                  == 2.*,
     repa                        == 3.2.*,
     repa-algorithms             == 3.2.*,
     repa-io                     == 3.2.*,
+    vector                      == 0.9.*,
+    -- Additional test dependencies.
+    HUnit                       == 1.2.*,
+    QuickCheck                  == 2.*,
     test-framework              == 0.6.*,
-    test-framework-doctest      == 0.2.*,
     test-framework-hunit        == 0.2.*,
-    test-framework-quickcheck2  == 0.2.*,
-    vector                      == 0.9.*
+    test-framework-quickcheck2  == 0.2.*
 
   main-is:
     Main.hs
@@ -74,3 +74,76 @@ executable spline3
     -prof
     -auto-all
     -caf-all
+
+
+test-suite doctests
+  type: exitcode-stdio-1.0
+  hs-source-dirs: test
+  main-is: Doctests.hs
+  build-depends:
+    base                        == 4.5.*,
+    -- Additional test dependencies.
+    doctest                     == 0.7.*
+
+  -- It's not entirely clear to me why I have to reproduce all of this.
+  ghc-options:
+    -rtsopts
+    -threaded
+    -funbox-strict-fields
+    -fexcess-precision
+    -fno-spec-constr-count
+
+  if flag(llvm)
+    ghc-options:
+      -fllvm
+      -optlo-O3
+      -optlc-O3
+  else
+    ghc-options:
+      -O2
+      -optc-O3
+      -optc-march=native
+
+
+test-suite testsuite
+  type: exitcode-stdio-1.0
+  hs-source-dirs: src test
+  main-is: TestSuite.hs
+  build-depends:
+    base                        == 4.5.*,
+    filepath                    == 1.*,
+    repa                        == 3.2.*,
+    repa-algorithms             == 3.2.*,
+    repa-io                     == 3.2.*,
+    vector                      == 0.9.*,
+    -- Additional test dependencies.
+    HUnit                       == 1.2.*,
+    QuickCheck                  == 2.*,
+    test-framework              == 0.6.*,
+    test-framework-hunit        == 0.2.*,
+    test-framework-quickcheck2  == 0.2.*
+
+  -- It's not entirely clear to me why I have to reproduce all of this.
+  ghc-options:
+    -rtsopts
+    -threaded
+    -funbox-strict-fields
+    -fexcess-precision
+    -fno-spec-constr-count
+
+  if flag(llvm)
+    ghc-options:
+      -fllvm
+      -optlo-O3
+      -optlc-O3
+  else
+    ghc-options:
+      -O2
+      -optc-O3
+      -optc-march=native
+
+
+source-repository head
+  type: git
+  location: http://michael.orlitzky.com/git/spline3.git
+  branch: master