Add “Ignore warning” option to cabal check
[cabal.git] / cabal-testsuite / PackageTests / HaddockProject / haddock-project.test.hs
blob6d889a141635370c9eec541d074df64ba7ab7833
1 import Test.Cabal.Prelude
2 import System.Directory (doesFileExist, removeDirectory)
4 main = cabalTest . withRepo "repo" . withSourceCopy $ do
5 skipUnlessGhcVersion ">= 9.4.0"
6 env <- getTestEnv
7 let testDir = testCurrentDir env
9 cabal "haddock-project" ["all"]
10 let asyncHaddocks = "haddocks" </> "async" </> "async.haddock"
11 liftIO (doesFileExist (testDir </> asyncHaddocks))
12 >>= assertBool ("'" ++ asyncHaddocks ++ "'" ++ "should exist")