1 import Test
.Cabal
.Prelude
4 main
= cabalTest
. withRepo
"repo" $ do
5 cabal
"build" ["--enable-documentation"]
8 let storeDir
= testCabalDir env
</> "store"
10 -- Check properties of executable component
11 libDir
<- liftIO
$ findDependencyInStore storeDir
"exe"
12 -- Documentation is enabled..
13 assertFileDoesContain
(libDir
</> "cabal-hash.txt") "documentation: True"
15 shouldDirectoryNotExist
( libDir
</> "share" </> "doc" )
17 -- Check properties of library
18 libDir
<- liftIO
$ findDependencyInStore storeDir
"lib"
19 -- Documentation is enabled..
20 assertFileDoesContain
(libDir
</> "cabal-hash.txt") "documentation: True"
22 shouldDirectoryExist
( libDir
</> "share" </> "doc" )