Improve online docs for `includes:` field
[cabal.git] / cabal-testsuite / PackageTests / ReplBuildDepends / cabal.test.hs
blobe5b63af3daedce8b0132ba8406d81b24b50e54b6
1 import Test.Cabal.Prelude
3 -- Test “repl --build-depends”
4 main = do
5 testWithByteString "normal" []
6 -- See https://github.com/haskell/cabal/issues/6859
7 testWithByteString "allow-newer" ["--allow-newer"]
8 -- See https://github.com/haskell/cabal/issues/6859
9 testWithByteString "allow-older" ["--allow-older"]
10 where
11 testWithByteString label extraArgs = cabalTest' label $ do
12 cabal' "clean" []
13 res <- cabalWithStdin
14 "repl"
15 ("-v2" : "--build-depends" : "bytestring" : extraArgs)
16 "import qualified Data.ByteString as BS"
17 assertOutputContains "Ok, one module loaded." res
18 -- Ensure we can load ‘bytestring’
19 assertOutputDoesNotContain "Could not load" res