• Alp Mestanogullari's avatar
    Hadrian: use the testsuite driver's config.haddock arg more correctly · 51655fd8
    Alp Mestanogullari authored
    4 haddock tests assume that .haddock files have been produced, by using the
    'req_haddock' modifier. The testsuite driver assumes that this condition is
    satisfied if 'config.haddock' is non-empty, but before this patch Hadrian was
    always passing the path to where the haddock executable should be, regardless
    of whether it is actually there or not.
    
    Instead, we now pass an empty config.haddock when we can't find all of
    <build root>/docs/html/libraries/<pkg>/<pkg>.haddock>, where <pkg> ranges over
    array, base, ghc-prim, process and template-haskell, and pass the path
    to haddock when all those file exists. This has the (desired) effect of skipping
    the 4 tests (marked as 'missing library') when the docs haven't been built,
    and running the haddock tests when they have.
    51655fd8
Name
Last commit
Last update
..
cfg Loading commit data...
doc Loading commit data...
src Loading commit data...
.ghci Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
build.bat Loading commit data...
build.cabal.bat Loading commit data...
build.cabal.sh Loading commit data...
build.sh Loading commit data...
build.stack.bat Loading commit data...
build.stack.nix.sh Loading commit data...
build.stack.sh Loading commit data...
cabal.project Loading commit data...
ghci.sh Loading commit data...
hadrian.cabal Loading commit data...
stack.yaml Loading commit data...