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