Skip to content
  • Alp Mestanogullari's avatar
    Hadrian: use the testsuite driver's config.haddock arg more correctly · 51655fd8
    Alp Mestanogullari authored and Marge Bot's avatar Marge Bot committed
    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