diff options
author | David Waern <david.waern@gmail.com> | 2009-08-16 01:26:08 +0000 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2009-08-16 01:26:08 +0000 |
commit | a23f5eba6f46cbd0801df142f7831f235c34b226 (patch) | |
tree | c62633a3a0fb7be7124d45aad5a57250e9337a92 /tests/runtests.hs | |
parent | 0afc10f95f99f9e75b387411533b12f9c279b89d (diff) |
Read process.haddock when running tests
Diffstat (limited to 'tests/runtests.hs')
-rw-r--r-- | tests/runtests.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/runtests.hs b/tests/runtests.hs index dd5a84f6..6cec7cb4 100644 --- a/tests/runtests.hs +++ b/tests/runtests.hs @@ -61,10 +61,12 @@ test = do libdir <- rawSystemStdout normal "../dist/build/haddock/haddock" ["--print-ghc-libdir"] let basepath = init libdir ++ "/../../share/doc/ghc/libraries/base/" - let option = "-i " ++ basepath ++ "," ++ basepath ++ "base.haddock" + let base = "-i " ++ basepath ++ "," ++ basepath ++ "base.haddock" + let processpath = init libdir ++ "/../../share/doc/ghc/libraries/process/" + let process = "-i " ++ processpath ++ "," ++ processpath ++ "process.haddock" putStrLn "Running tests..." - handle <- runProcess "../dist/build/haddock/haddock" (["-w", "-o", outdir, "-h", "--optghc=-fglasgow-exts", "--optghc=-w", option] ++ mods') Nothing (Just [("haddock_datadir", "../.")]) Nothing Nothing Nothing + handle <- runProcess "../dist/build/haddock/haddock" (["-w", "-o", outdir, "-h", "--optghc=-fglasgow-exts", "--optghc=-w", base, process] ++ mods') Nothing (Just [("haddock_datadir", "../.")]) Nothing Nothing Nothing code <- waitForProcess handle when (code /= ExitSuccess) $ error "Haddock run failed! Exiting." check mods (if not (null args) && args !! 0 == "all" then False else True) |