Improve online docs for `includes:` field
[cabal.git] / cabal-testsuite / PackageTests / BuildDeps / TargetSpecificDeps3 / setup.test.hs
blob7132bb9c9e8c50c9f186e5282d563f978e3b92ab
1 import Test.Cabal.Prelude
2 -- Test "new build-dep behavior", where each target gets
3 -- separate dependencies. This tests that an library
4 -- dep does not leak into the executable.
5 main = setupAndCabalTest $ do
6 setup "configure" []
7 r <- fails $ setup' "build" []
8 assertRegex "error should be in lemon.hs" "^lemon.hs:" r
9 assertRegex
10 "error should be \"Could not find module `Text\\.PrettyPrint\""
11 "(Could not (load|find) module|Failed to load interface for).*Text\\.PrettyPrint" r