2008-08-09 18:51:08 +02:00
|
|
|
{-# OPTIONS_GHC -Wall #-}
|
|
|
|
|
|
|
|
module Main where
|
2011-01-04 01:00:01 +01:00
|
|
|
|
2011-01-12 13:11:08 +01:00
|
|
|
import Test.Framework
|
2013-01-18 20:23:09 +01:00
|
|
|
import GHC.IO.Encoding
|
2011-01-12 19:10:56 +01:00
|
|
|
import qualified Tests.Old
|
|
|
|
import qualified Tests.Readers.LaTeX
|
2011-01-27 07:09:09 +01:00
|
|
|
import qualified Tests.Readers.Markdown
|
2011-01-26 18:10:39 +01:00
|
|
|
import qualified Tests.Readers.RST
|
2011-01-21 19:23:41 +01:00
|
|
|
import qualified Tests.Writers.ConTeXt
|
2012-06-01 19:50:22 +02:00
|
|
|
import qualified Tests.Writers.LaTeX
|
2011-01-30 01:26:00 +01:00
|
|
|
import qualified Tests.Writers.HTML
|
2011-01-22 21:28:30 +01:00
|
|
|
import qualified Tests.Writers.Native
|
2011-06-06 14:56:59 +02:00
|
|
|
import qualified Tests.Writers.Markdown
|
2011-01-29 19:03:00 +01:00
|
|
|
import qualified Tests.Shared
|
2013-08-11 04:04:15 +02:00
|
|
|
import qualified Tests.Walk
|
2012-07-26 18:43:27 +02:00
|
|
|
import Text.Pandoc.Shared (inDirectory)
|
2008-08-09 18:51:08 +02:00
|
|
|
|
2011-01-04 01:00:01 +01:00
|
|
|
tests :: [Test]
|
2011-01-12 19:10:56 +01:00
|
|
|
tests = [ testGroup "Old" Tests.Old.tests
|
2011-01-29 19:03:00 +01:00
|
|
|
, testGroup "Shared" Tests.Shared.tests
|
2013-08-11 04:04:15 +02:00
|
|
|
, testGroup "Walk" Tests.Walk.tests
|
2011-01-23 00:54:24 +01:00
|
|
|
, testGroup "Writers"
|
|
|
|
[ testGroup "Native" Tests.Writers.Native.tests
|
|
|
|
, testGroup "ConTeXt" Tests.Writers.ConTeXt.tests
|
2012-06-01 19:50:22 +02:00
|
|
|
, testGroup "LaTeX" Tests.Writers.LaTeX.tests
|
2011-01-30 01:26:00 +01:00
|
|
|
, testGroup "HTML" Tests.Writers.HTML.tests
|
2011-06-06 14:56:59 +02:00
|
|
|
, testGroup "Markdown" Tests.Writers.Markdown.tests
|
2011-01-23 00:54:24 +01:00
|
|
|
]
|
2011-01-14 09:30:36 +01:00
|
|
|
, testGroup "Readers"
|
|
|
|
[ testGroup "LaTeX" Tests.Readers.LaTeX.tests
|
2011-01-27 07:09:09 +01:00
|
|
|
, testGroup "Markdown" Tests.Readers.Markdown.tests
|
2011-01-26 18:10:39 +01:00
|
|
|
, testGroup "RST" Tests.Readers.RST.tests
|
2011-01-14 09:30:36 +01:00
|
|
|
]
|
2011-01-04 01:00:01 +01:00
|
|
|
]
|
|
|
|
|
2008-08-09 18:51:08 +02:00
|
|
|
main :: IO ()
|
2013-01-18 20:23:09 +01:00
|
|
|
main = do
|
|
|
|
setLocaleEncoding utf8
|
2013-10-20 21:36:26 +02:00
|
|
|
-- we ignore command-line arguments, since we're having cabal pass
|
|
|
|
-- the build directory as first argument, and we don't want test-framework
|
|
|
|
-- to choke on that.
|
|
|
|
inDirectory "tests" $ defaultMainWithArgs tests []
|