diff options
author | John MacFarlane <jgm@berkeley.edu> | 2012-07-26 09:43:27 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2012-07-26 09:43:27 -0700 |
commit | acbb4a5e46f01d15ff1b7082d574b624bb22d1b1 (patch) | |
tree | 46eaa4acf504eb6d7dfcac5434387300533518f7 /pandoc.cabal | |
parent | c414a08bcf4a4ae6c9c8007e27b87122217cdcee (diff) | |
download | pandoc-acbb4a5e46f01d15ff1b7082d574b624bb22d1b1.tar.gz |
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.cabal | 14 |
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 |