1 import Test
.Cabal
.Prelude
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 $
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"]
17 setup_install
' ["exe"]
18 runExe
' "exe" [] >>= assertOutputContains
"minemysql minepostgresql"