Merge pull request #9898 from haskell/mergify/bp/3.12/pr-9865
[cabal.git] / cabal-testsuite / PackageTests / HaddockArgs / quickjump.test.hs
blob3b8a3281d699076c4ebd9f6f1a29738b838499e3
1 import Test.Cabal.Prelude
3 import System.Directory
4 import System.FilePath
6 main = withShorterPathForNewBuildStore $ \storeDir -> cabalTest $ withRepo "repo" $ do
7 cabalG ["--store-dir=" ++ storeDir] "v2-build"
8 [ "example"
9 , "--enable-documentation"
10 , "--haddock-quickjump"
12 liftIO $ do
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