1 import Test
.Cabal
.Prelude
2 main
= setupAndCabalTest
$ do
3 skipUnlessGhcVersion
">= 8.1"
4 ghc
<- isGhcVersion
"== 9.0.2 || == 9.2.* || == 9.4.* || == 9.6.*"
5 expectBrokenIf ghc
7987 $ do
7 withDirectory
"mylib" $ setup_install_with_docs
["--ipid", "mylib-0.1.0.0"]
8 withDirectory
"mysql" $ setup_install_with_docs
["--ipid", "mysql-0.1.0.0"]
9 withDirectory
"postgresql" $ setup_install_with_docs
["--ipid", "postgresql-0.1.0.0"]
10 withDirectory
"mylib" $
11 setup_install_with_docs
["--ipid", "mylib-0.1.0.0",
12 "--instantiate-with", "Database=mysql-0.1.0.0:Database.MySQL"]
13 withDirectory
"mylib" $
14 setup_install_with_docs
["--ipid", "mylib-0.1.0.0",
15 "--instantiate-with", "Database=postgresql-0.1.0.0:Database.PostgreSQL"]
16 withDirectory
"src" $ setup_install_with_docs
[]
17 withDirectory
"exe" $ do
18 setup_install_with_docs
[]
19 runExe
' "exe" [] >>= assertOutputContains
"minemysql minepostgresql"