Un-ignore .bat files
[cabal.git] / cabal-testsuite / PackageTests / HaddockBuildDepends / cabal.test.hs
blob6dee566fceccf448aa2d5f2a010d9b90f42fb567
1 import Test.Cabal.Prelude
4 main = cabalTest . withRepo "repo" $ do
5 cabal "build" ["--enable-documentation"]
7 env <- getTestEnv
9 -- Check properties of executable component
10 libDir <- findDependencyInStore "exe"
11 -- Documentation is enabled..
12 assertFileDoesContain (libDir </> "cabal-hash.txt") "documentation: True"
13 -- But not built
14 shouldDirectoryNotExist ( libDir </> "share" </> "doc" )
16 -- Check properties of library
17 libDir <- findDependencyInStore "lib"
18 -- Documentation is enabled..
19 assertFileDoesContain (libDir </> "cabal-hash.txt") "documentation: True"
20 -- and has been built
21 shouldDirectoryExist ( libDir </> "share" </> "doc" )