Reimplement `cabal check` (#8427)
[cabal.git] / cabal-testsuite / PackageTests / Backpack / Includes3 / setup-external-fail.test.hs
blob979558be1a4220afa94030ec24af95adbe37677d
1 import Test.Cabal.Prelude
2 main = setupAndCabalTest $ do
3 skipUnlessGhcVersion ">= 8.1"
4 withPackageDb $ do
5 withDirectory "repo/sigs-0.1.0.0" $ setup_install []
6 withDirectory "repo/indef-0.1.0.0" $ setup_install []
7 -- Forgot to build the instantiated versions!
8 withDirectory "repo/exe-0.1.0.0" $ do
9 -- Missing package message includes a unit identifier,
10 -- which wobbles when version numbers change
11 r <- recordMode DoNotRecord . fails $ setup' "configure" []
12 assertOutputContains "indef-0.1.0.0" r
13 return ()