diff options
author | Łukasz Hanuszczak <lukasz.hanuszczak@gmail.com> | 2015-08-18 23:19:39 +0200 |
---|---|---|
committer | Łukasz Hanuszczak <lukasz.hanuszczak@gmail.com> | 2015-08-22 23:40:28 +0200 |
commit | 8e05e0b78eabbaf59c7d2c90d1f839fd58c5fe09 (patch) | |
tree | 3cc38a8c6204338fcdb32706e646e6cc2c9cd353 /latex-test/Main.hs | |
parent | d36a1a5fb39529e396203b4da0c396ceedda133b (diff) |
Create test runner entry points for LaTeX test suite.
Diffstat (limited to 'latex-test/Main.hs')
-rwxr-xr-x | latex-test/Main.hs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/latex-test/Main.hs b/latex-test/Main.hs new file mode 100755 index 00000000..2ee01a26 --- /dev/null +++ b/latex-test/Main.hs @@ -0,0 +1,27 @@ +{-# LANGUAGE CPP #-} + + +import System.Environment +import System.FilePath + +import Test.Haddock + + +checkConfig :: CheckConfig String +checkConfig = CheckConfig + { ccfgRead = \_ input -> Just input + , ccfgDump = id + , ccfgEqual = (==) + } + + +dirConfig :: DirConfig +dirConfig = defaultDirConfig $ takeDirectory __FILE__ + + +main :: IO () +main = do + cfg <- parseArgs checkConfig dirConfig =<< getArgs + runAndCheck $ cfg + { cfgHaddockArgs = cfgHaddockArgs cfg ++ ["--latex"] + } |