Commit a1f67b8f authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

package-tests helper cabal_install_with_docs for building with docs.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent b5a4d9aa
......@@ -28,6 +28,7 @@ module PackageTests.PackageTester
, cabal'
, cabal_build
, cabal_install
, cabal_install_with_docs
, ghcPkg
, ghcPkg'
, compileSetup
......@@ -421,6 +422,17 @@ cabal_install args = do
cabal "register" []
return ()
-- | This abstracts the common pattern of "installing" a package,
-- with haddock documentation.
cabal_install_with_docs :: [String] -> TestM ()
cabal_install_with_docs args = do
cabal "configure" args
cabal "build" []
cabal "haddock" []
cabal "copy" []
cabal "register" []
return ()
-- | Determines what Setup executable to run and runs it
doCabal :: [String] -- ^ extra arguments
-> TestM Result
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment