summaryrefslogtreecommitdiff
path: root/pandoc.cabal
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-07-26 09:43:27 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2012-07-26 09:43:27 -0700
commitacbb4a5e46f01d15ff1b7082d574b624bb22d1b1 (patch)
tree46eaa4acf504eb6d7dfcac5434387300533518f7 /pandoc.cabal
parentc414a08bcf4a4ae6c9c8007e27b87122217cdcee (diff)
Integrated test suite with cabal.
To run tests, configure with --enable-tests, then 'cabal test'. You can specify particular tests using --test-options='-t markdown'. No output is shown unless tests fail. In the future, we can move to the detailed-1.0 interface.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r--pandoc.cabal14
1 files changed, 4 insertions, 10 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 6499abb4c..23c18c39e 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -188,9 +188,6 @@ Flag executable
Flag library
Description: Build the pandoc library.
Default: True
-Flag tests
- Description: Build test-pandoc.
- Default: False
Flag blaze_html_0_5
Description: Use blaze-html 0.5 and blaze-markup 0.5
Default: False
@@ -373,9 +370,10 @@ Executable pandoc
else
Buildable: False
-Executable test-pandoc
- Main-Is: test-pandoc.hs
- Hs-Source-Dirs: tests
+Test-Suite test-pandoc
+ Type: exitcode-stdio-1.0
+ Main-Is: test-pandoc.hs
+ Hs-Source-Dirs: tests
if impl(ghc >= 6.10)
Build-depends: base >= 4 && < 5, syb >= 0.1 && < 0.4
else
@@ -414,10 +412,6 @@ Executable test-pandoc
Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind -dno-debug-output
else
Ghc-Options: -O2 -Wall
- if !flag(tests)
- Buildable: False
- else
- Buildable: True
if impl(ghc >= 7)
cpp-options: -D_LIT=lit
else