GHC 9.6 compatibility
[cabal.git] / cabal-testsuite / PackageTests / Backpack / Includes3 / setup-external-ok.test.hs
blobd7ae9a1921d19c0c3a9fce1c6ac4e62708ac4dee
1 import Test.Cabal.Prelude
2 import Data.List
3 import qualified Data.Char as Char
4 main = setupAndCabalTest $ do
5 skipUnlessGhcVersion ">= 8.1"
6 ghc <- isGhcVersion "== 9.0.2 || == 9.2.* || == 9.4.* || == 9.6.*"
7 expectBrokenIf ghc 7987 $
8 withPackageDb $ do
9 containers_id <- getIPID "containers"
10 withDirectory "repo/sigs-0.1.0.0" $ setup_install_with_docs ["--ipid", "sigs-0.1.0.0"]
11 withDirectory "repo/indef-0.1.0.0" $ setup_install_with_docs ["--ipid", "indef-0.1.0.0"]
12 withDirectory "repo/sigs-0.1.0.0" $ do
13 -- NB: this REUSES the dist directory that we typechecked
14 -- indefinitely, but it's OK; the recompile checker should get it.
15 setup_install_with_docs ["--ipid", "sigs-0.1.0.0",
16 "--instantiate-with", "Data.Map=" ++ containers_id ++ ":Data.Map"]
17 withDirectory "repo/indef-0.1.0.0" $ do
18 -- Ditto.
19 setup_install_with_docs ["--ipid", "indef-0.1.0.0",
20 "--instantiate-with", "Data.Map=" ++ containers_id ++ ":Data.Map"]
21 withDirectory "repo/exe-0.1.0.0" $ do
22 setup_install []
23 runExe' "exe" [] >>= assertOutputContains "fromList [(0,2),(2,4)]"