diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-01-04 17:44:26 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-01-04 17:44:26 -0800 |
commit | ae4a5f48584ae88fc4c812270ad9990b694f7398 (patch) | |
tree | f6aea6cee3fc556cb850cd93c57703a11f08a9ee /test/test-pandoc.hs | |
parent | 577ad44350eb7e5c1338efdd59dca3a15a4a112d (diff) | |
download | pandoc-ae4a5f48584ae88fc4c812270ad9990b694f7398.tar.gz |
Fix findPandoc so it works with cabalv2.
Diffstat (limited to 'test/test-pandoc.hs')
-rw-r--r-- | test/test-pandoc.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test-pandoc.hs b/test/test-pandoc.hs index dc51b73cc..63560936c 100644 --- a/test/test-pandoc.hs +++ b/test/test-pandoc.hs @@ -40,6 +40,7 @@ import qualified Tests.Writers.Plain import qualified Tests.Writers.Powerpoint import qualified Tests.Writers.RST import qualified Tests.Writers.TEI +import Tests.Helpers (findPandoc) import Text.Pandoc.Shared (inDirectory) tests :: TestTree @@ -86,4 +87,7 @@ tests = testGroup "pandoc tests" [ Tests.Command.tests main :: IO () main = do setLocaleEncoding utf8 - inDirectory "test" $ defaultMain tests + inDirectory "test" $ do + fp <- findPandoc + putStrLn $ "Using pandoc executable at " ++ fp + defaultMain tests |