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:
parent
711ee2b00a
commit
cc176e1e93
|
@ -27,10 +27,17 @@ main = do
|
||||||
Test.DocTest.doctest
|
Test.DocTest.doctest
|
||||||
[ "-DWITH_HTTP"
|
[ "-DWITH_HTTP"
|
||||||
, "--fast"
|
, "--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 </> "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/Tags.hs"
|
||||||
|
, prefix </> "src/Dhall/Tutorial.hs"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user