Add migration guide for #9718 (#10578)
[cabal.git] / cabal-testsuite / PackageTests / Backpack / Includes2 / setup-per-component.test.hs
blob80990b1136c1061a6112701f34190ab6987b9663
1 import Test.Cabal.Prelude
2 main = setupTest $ do
3 -- No cabal test because per-component is broken with it
4 skipUnlessGhcVersion ">= 8.1"
5 expectBrokenIfGhc "== 9.0.2 || == 9.2.* || == 9.4.* || == 9.6.*" 7987 $
6 withPackageDb $
7 withDirectory "Includes2" $ do
8 let setup_install' args = setup_install_with_docs args
9 setup_install' ["mylib", "--cid", "mylib-0.1.0.0"]
10 setup_install' ["mysql", "--cid", "mysql-0.1.0.0"]
11 setup_install' ["postgresql", "--cid", "postgresql-0.1.0.0"]
12 setup_install' ["mylib", "--cid", "mylib-0.1.0.0",
13 "--instantiate-with", "Database=mysql-0.1.0.0:Database.MySQL"]
14 setup_install' ["mylib", "--cid", "mylib-0.1.0.0",
15 "--instantiate-with", "Database=postgresql-0.1.0.0:Database.PostgreSQL"]
16 setup_install' ["I"]
17 setup_install' ["exe"]
18 runExe' "exe" [] >>= assertOutputContains "minemysql minepostgresql"