Simplify the doctest invocation (#1433)

* Simplify the doctest invocation

This doesn't change the number of tests covered.

Fixes #1431.

* Try to fix doctests on Hydra

* Fix doctests with cabal v1-test and try to explain how

* Don't target the Dhall module directly

Dhall.Tutorial already depends on it.
This commit is contained in:
Simon Jakobi 2019-11-13 09:04:05 +01:00 committed by mergify[bot]
parent 711ee2b00a
commit cc176e1e93
1 changed files with 11 additions and 4 deletions

View File

@ -27,10 +27,17 @@ main = do
Test.DocTest.doctest
[ "-DWITH_HTTP"
, "--fast"
, prefix </> "ghc-src"
-- Unfortunately we cannot target the entire @src@ directory.
-- The reason is that src/Dhall/Version.hs depends on
-- the generated Paths_dhall module which is "out-of-scope"
-- when running the testsuite with cabal v1-test.
-- Instead, we target a selection of modules whose combined module
-- dependency tree covers all modules that contain doctests.
-- , prefix </> "src"
, "-i" <> (prefix </> "src")
, "-i" <> (prefix </> "ghc-src")
, prefix </> "src/Dhall.hs"
, prefix </> "src/Dhall/Import.hs"
, prefix </> "src/Dhall/Tutorial.hs"
, prefix </> "src/Dhall/Tags.hs"
, prefix </> "src/Dhall/Tutorial.hs"
]