2018-03-18 18:46:28 +01:00
|
|
|
{-# LANGUAGE NoImplicitPrelude #-}
|
2008-08-09 18:51:08 +02:00
|
|
|
{-# OPTIONS_GHC -Wall #-}
|
|
|
|
|
|
|
|
module Main where
|
2011-01-04 01:00:01 +01:00
|
|
|
|
2018-03-18 18:46:28 +01:00
|
|
|
import Prelude
|
2013-01-18 20:23:09 +01:00
|
|
|
import GHC.IO.Encoding
|
2017-03-14 17:05:36 +01:00
|
|
|
import Test.Tasty
|
2017-02-04 17:38:03 +01:00
|
|
|
import qualified Tests.Command
|
2017-03-20 15:17:03 +01:00
|
|
|
import qualified Tests.Lua
|
2017-03-04 13:03:41 +01:00
|
|
|
import qualified Tests.Old
|
2017-10-28 05:28:29 +02:00
|
|
|
import qualified Tests.Readers.Creole
|
2017-03-04 13:03:41 +01:00
|
|
|
import qualified Tests.Readers.Docx
|
|
|
|
import qualified Tests.Readers.EPUB
|
|
|
|
import qualified Tests.Readers.HTML
|
2017-12-20 01:54:02 +01:00
|
|
|
import qualified Tests.Readers.JATS
|
2011-01-12 19:10:56 +01:00
|
|
|
import qualified Tests.Readers.LaTeX
|
2011-01-27 07:09:09 +01:00
|
|
|
import qualified Tests.Readers.Markdown
|
2017-10-28 05:28:29 +02:00
|
|
|
import qualified Tests.Readers.Muse
|
2017-03-04 13:03:41 +01:00
|
|
|
import qualified Tests.Readers.Odt
|
2014-03-04 00:33:25 +01:00
|
|
|
import qualified Tests.Readers.Org
|
2011-01-26 18:10:39 +01:00
|
|
|
import qualified Tests.Readers.RST
|
2014-07-25 21:39:13 +02:00
|
|
|
import qualified Tests.Readers.Txt2Tags
|
2017-03-04 13:03:41 +01:00
|
|
|
import qualified Tests.Shared
|
|
|
|
import qualified Tests.Writers.AsciiDoc
|
2011-01-21 19:23:41 +01:00
|
|
|
import qualified Tests.Writers.ConTeXt
|
2014-04-12 07:19:51 +02:00
|
|
|
import qualified Tests.Writers.Docbook
|
2017-03-04 13:03:41 +01:00
|
|
|
import qualified Tests.Writers.Docx
|
2017-10-28 17:13:51 +02:00
|
|
|
import qualified Tests.Writers.FB2
|
2017-03-04 13:03:41 +01:00
|
|
|
import qualified Tests.Writers.HTML
|
2017-12-13 00:06:22 +01:00
|
|
|
import qualified Tests.Writers.JATS
|
2017-03-04 13:03:41 +01:00
|
|
|
import qualified Tests.Writers.LaTeX
|
2011-06-06 14:56:59 +02:00
|
|
|
import qualified Tests.Writers.Markdown
|
2017-10-28 05:28:29 +02:00
|
|
|
import qualified Tests.Writers.Muse
|
2017-03-04 13:03:41 +01:00
|
|
|
import qualified Tests.Writers.Native
|
2017-02-12 15:09:07 +01:00
|
|
|
import qualified Tests.Writers.Org
|
2014-08-03 14:48:55 +02:00
|
|
|
import qualified Tests.Writers.Plain
|
2017-12-28 16:39:47 +01:00
|
|
|
import qualified Tests.Writers.Powerpoint
|
2015-04-16 18:27:33 +02:00
|
|
|
import qualified Tests.Writers.RST
|
2015-12-24 17:36:58 +01:00
|
|
|
import qualified Tests.Writers.TEI
|
2012-07-26 18:43:27 +02:00
|
|
|
import Text.Pandoc.Shared (inDirectory)
|
2008-08-09 18:51:08 +02:00
|
|
|
|
2017-03-14 17:05:36 +01:00
|
|
|
tests :: TestTree
|
|
|
|
tests = testGroup "pandoc tests" [ Tests.Command.tests
|
2017-02-04 21:07:03 +01:00
|
|
|
, testGroup "Old" Tests.Old.tests
|
2011-01-29 19:03:00 +01:00
|
|
|
, testGroup "Shared" Tests.Shared.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
|
2017-12-13 00:06:22 +01:00
|
|
|
, testGroup "JATS" Tests.Writers.JATS.tests
|
2014-04-12 07:19:51 +02:00
|
|
|
, testGroup "Docbook" Tests.Writers.Docbook.tests
|
2011-06-06 14:56:59 +02:00
|
|
|
, testGroup "Markdown" Tests.Writers.Markdown.tests
|
2017-02-12 15:09:07 +01:00
|
|
|
, testGroup "Org" Tests.Writers.Org.tests
|
2014-08-03 14:48:55 +02:00
|
|
|
, testGroup "Plain" Tests.Writers.Plain.tests
|
2014-05-04 06:24:20 +02:00
|
|
|
, testGroup "AsciiDoc" Tests.Writers.AsciiDoc.tests
|
2015-03-03 12:37:02 +01:00
|
|
|
, testGroup "Docx" Tests.Writers.Docx.tests
|
2015-04-16 18:27:33 +02:00
|
|
|
, testGroup "RST" Tests.Writers.RST.tests
|
2015-12-24 17:36:58 +01:00
|
|
|
, testGroup "TEI" Tests.Writers.TEI.tests
|
2017-03-10 10:16:27 +01:00
|
|
|
, testGroup "Muse" Tests.Writers.Muse.tests
|
2017-10-28 17:13:51 +02:00
|
|
|
, testGroup "FB2" Tests.Writers.FB2.tests
|
2017-12-28 16:39:47 +01:00
|
|
|
, testGroup "PowerPoint" Tests.Writers.Powerpoint.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
|
2015-05-14 05:39:01 +02:00
|
|
|
, testGroup "HTML" Tests.Readers.HTML.tests
|
2017-12-20 01:54:02 +01:00
|
|
|
, testGroup "JATS" Tests.Readers.JATS.tests
|
2014-03-04 00:33:25 +01:00
|
|
|
, testGroup "Org" Tests.Readers.Org.tests
|
2011-01-26 18:10:39 +01:00
|
|
|
, testGroup "RST" Tests.Readers.RST.tests
|
2014-06-17 07:44:40 +02:00
|
|
|
, testGroup "Docx" Tests.Readers.Docx.tests
|
2015-07-23 09:06:14 +02:00
|
|
|
, testGroup "Odt" Tests.Readers.Odt.tests
|
2014-07-25 21:39:13 +02:00
|
|
|
, testGroup "Txt2Tags" Tests.Readers.Txt2Tags.tests
|
2014-08-10 15:33:18 +02:00
|
|
|
, testGroup "EPUB" Tests.Readers.EPUB.tests
|
2017-06-19 10:46:02 +02:00
|
|
|
, testGroup "Muse" Tests.Readers.Muse.tests
|
2017-10-27 01:19:28 +02:00
|
|
|
, testGroup "Creole" Tests.Readers.Creole.tests
|
2011-01-14 09:30:36 +01:00
|
|
|
]
|
2017-03-20 15:17:03 +01:00
|
|
|
, testGroup "Lua filters" Tests.Lua.tests
|
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
|
2017-03-14 17:05:36 +01:00
|
|
|
inDirectory "test" $ defaultMain tests
|