diff options
author | David Waern <davve@dtek.chalmers.se> | 2007-11-08 02:13:41 +0000 |
---|---|---|
committer | David Waern <davve@dtek.chalmers.se> | 2007-11-08 02:13:41 +0000 |
commit | 130c6417627d29c1c50b7c22e49aafe368436983 (patch) | |
tree | 1a7d18d2ef20432887da399bf40b01285950beae | |
parent | 759d3d0b327b9a7f86316b96ea6f361b32ff52b8 (diff) |
Update runtests.hs following changes to haddock
-rw-r--r-- | tests/runtests.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runtests.hs b/tests/runtests.hs index 18375b97..321938b3 100644 --- a/tests/runtests.hs +++ b/tests/runtests.hs @@ -10,7 +10,7 @@ import Text.Regex main = do args <- getArgs - when (null args) $ error "You must give the path to the GHC lib dir with -B" + when (null args) $ error "You must give the path to the GHC lib dir as an argument" putStrLn "Running tests..." let libdir = head args walkDirs libdir "." @@ -60,7 +60,7 @@ testDir libdir dir = do let mods' = map (dir </>) mods let outdir = "output" </> dir createDirectoryIfMissing True outdir - code <- system $ printf "haddock -B %s -o %s -h -g -fglasgow-exts %s" libdir outdir (unwords mods') + code <- system $ printf "haddock -B %s -o %s -h --optghc=-fglasgow-exts %s" libdir outdir (unwords mods') unless (code == ExitSuccess) $ error "Haddock run failed! Exiting." check mods' walkDirs libdir dir |