1 import Test
.Cabal
.Prelude
3 import System
.Directory
6 main
= withShorterPathForNewBuildStore
$ \storeDir
-> cabalTest
$ withRepo
"repo" $ do
7 cabalG
["--store-dir=" ++ storeDir
] "v2-build"
9 , "--enable-documentation"
10 , "--haddock-quickjump"
13 libDir
<- findDependencyInStore storeDir
"indef"
14 assertFileDoesContain
(libDir
</> "cabal-hash.txt") "haddock-quickjump: True"
15 docIndexJsonExists
<- doesFileExist (libDir
</> "share" </> "doc" </> "html" </> "doc-index.json")
16 assertBool
"doc-index.json doesn't exist, --quickjump is probably not passed to haddock" docIndexJsonExists