Create changelogs for 3.14.1.0 (#10591)
[cabal.git] / cabal-testsuite / PackageTests / HaddockArgs / quickjump.test.hs
blobde2df0f01e3f84a79b7ddf0b720edc12b698ff77
1 import Test.Cabal.Prelude
3 import System.Directory
4 import System.FilePath
6 main = cabalTest $ withShorterPathForNewBuildStore $ withRepo "repo" $ do
7 cabal "v2-build"
8 [ "example"
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