Make options work with test-pandoc.
This commit is contained in:
parent
05b7fd8dee
commit
fc17b3bd41
1 changed files with 3 additions and 4 deletions
|
@ -23,6 +23,7 @@ import qualified Tests.Writers.AsciiDoc
|
||||||
import qualified Tests.Shared
|
import qualified Tests.Shared
|
||||||
import qualified Tests.Walk
|
import qualified Tests.Walk
|
||||||
import Text.Pandoc.Shared (inDirectory)
|
import Text.Pandoc.Shared (inDirectory)
|
||||||
|
import System.Environment (getArgs)
|
||||||
|
|
||||||
tests :: [Test]
|
tests :: [Test]
|
||||||
tests = [ testGroup "Old" Tests.Old.tests
|
tests = [ testGroup "Old" Tests.Old.tests
|
||||||
|
@ -52,7 +53,5 @@ tests = [ testGroup "Old" Tests.Old.tests
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = do
|
main = do
|
||||||
setLocaleEncoding utf8
|
setLocaleEncoding utf8
|
||||||
-- we ignore command-line arguments, since we're having cabal pass
|
args <- getArgs
|
||||||
-- the build directory as first argument, and we don't want test-framework
|
inDirectory "tests" $ defaultMainWithArgs tests args
|
||||||
-- to choke on that.
|
|
||||||
inDirectory "tests" $ defaultMainWithArgs tests []
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue