]> gitweb.michael.orlitzky.com - haeredes.git/blobdiff - haeredes.cabal
test: add a shelltestrunner test suite for the man page examples.
[haeredes.git] / haeredes.cabal
index 723fc0719c731451db0bf67d566623c952701711..4bfcf04090ffc23c3c41a2f2e49850c2ada84838 100644 (file)
@@ -97,6 +97,11 @@ executable haeredes
     CommandLine
     DNS
     ExitCodes
+    -- WARNING: the Paths_haeredes module is automatically generated by
+    -- Cabal itself. We don't want it included in the release tarballs,
+    -- since we typically want the paths that the user has configured.
+    -- Nevertheless, Cabal will complain if we don't include it here.
+    Paths_haeredes
     Timeout
 
   ghc-options:
@@ -133,6 +138,36 @@ test-suite doctests
     -optc-O3
     -optc-march=native
 
+
+-- These won't work without shelltestrunner installed in your
+-- $PATH. Maybe there is some way to tell Cabal that.
+test-suite shelltests
+  type: exitcode-stdio-1.0
+  hs-source-dirs: test
+  main-is: ShellTests.hs
+
+  build-depends:
+    base                        == 4.*,
+    bytestring                  >= 0.10,
+    cmdargs                     >= 0.10,
+    dns                         >= 1.4,
+    iproute                     >= 1.2,
+    parallel-io                 >= 0.3,
+    process                     >= 1.1
+
+  -- It's not entirely clear to me why I have to reproduce all of this.
+  ghc-options:
+    -Weverything
+    -Wno-implicit-prelude
+    -Wno-safe
+    -Wno-unsafe
+    -Wno-all-missed-specialisations
+    -rtsopts
+    -threaded
+    -optc-O3
+    -optc-march=native
+
+
 source-repository head
   type: git
   location: http://gitweb.michael.orlitzky.com/haeredes.git