1 import Test
.Cabal
.Prelude
4 main
= cabalTest
. withRepo
"repo" $ do
5 cabal
"build" ["--enable-documentation"]
9 -- Check properties of executable component
10 libDir
<- findDependencyInStore
"exe"
11 -- Documentation is enabled..
12 assertFileDoesContain
(libDir
</> "cabal-hash.txt") "documentation: True"
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"
21 shouldDirectoryExist
( libDir
</> "share" </> "doc" )