setup.test.hs 377 Bytes
Newer Older
1
2
3
4
5
6
7
import Test.Cabal.Prelude
main = setupAndCabalTest $ do
    skipUnless =<< ghcVersionIs (>= mkVersion [8,1])
    setup "configure" []
    r <- fails $ setup' "build" []
    assertRegex "error should be in B.hs" "^B.hs:" r
    assertRegex "error should be \"Could not find module Data.Set\""
8
                "(Could not (load|find) module|Failed to load interface).*Data.Set" r