Merge pull request #10493 from Sdywolf/doc-refine/repl
[cabal.git] / cabal-testsuite / PackageTests / BuildDeps / TargetSpecificDeps1 / setup.test.hs
blob790afd6aa2b0d5a758bb6f9981639c4bfe03b516
1 import Test.Cabal.Prelude
2 -- Test "new build-dep behavior", where each target gets
3 -- separate dependencies. This tests that an executable
4 -- dep does not leak into the library.
5 main = setupAndCabalTest $ do
6 setup "configure" []
7 r <- fails $ setup' "build" []
8 assertRegex "error should be in MyLibrary.hs" "^MyLibrary.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