Add test cases that reproduce #7241.
[cabal.git] / cabal-testsuite / PackageTests / Backpack / Includes1 / setup.test.hs
blob0ec74cfec97a34783ed4e9c83b090151333a2062
1 import Test.Cabal.Prelude
2 main = setupAndCabalTest $ do
3 skipUnlessGhcVersion ">= 8.1"
4 setup "configure" []
5 r <- fails $ setup' "build" []
6 assertRegex "error should be in B.hs" "^B.hs:" r
7 assertRegex "error should be \"Could not find module Data.Set\""
8 "(Could not (load|find) module|Failed to load interface).*Data.Set" r