-
Artem Pelenitsyn authored
- -XTypeInType is deprecated - skip failing JS test on Windows Cf. https://github.com/haskell/cabal/pull/8754#issuecomment-1435535763 - deal with lift2A in Prelude since base-4.18 (GHC 9.6) - disable everfailing Backpack tests
Artem Pelenitsyn authored- -XTypeInType is deprecated - skip failing JS test on Windows Cf. https://github.com/haskell/cabal/pull/8754#issuecomment-1435535763 - deal with lift2A in Prelude since base-4.18 (GHC 9.6) - disable everfailing Backpack tests
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
setup-external-ok.test.hs 1.16 KiB
import Test.Cabal.Prelude
import Data.List
import qualified Data.Char as Char
main = setupAndCabalTest $ do
skipUnlessGhcVersion ">= 8.1"
ghc <- isGhcVersion "== 9.0.2 || == 9.2.* || == 9.4.* || == 9.6.*"
expectBrokenIf ghc 7987 $
withPackageDb $ do
containers_id <- getIPID "containers"
withDirectory "repo/sigs-0.1.0.0" $ setup_install_with_docs ["--ipid", "sigs-0.1.0.0"]
withDirectory "repo/indef-0.1.0.0" $ setup_install_with_docs ["--ipid", "indef-0.1.0.0"]
withDirectory "repo/sigs-0.1.0.0" $ do
-- NB: this REUSES the dist directory that we typechecked
-- indefinitely, but it's OK; the recompile checker should get it.
setup_install_with_docs ["--ipid", "sigs-0.1.0.0",
"--instantiate-with", "Data.Map=" ++ containers_id ++ ":Data.Map"]
withDirectory "repo/indef-0.1.0.0" $ do
-- Ditto.
setup_install_with_docs ["--ipid", "indef-0.1.0.0",
"--instantiate-with", "Data.Map=" ++ containers_id ++ ":Data.Map"]
withDirectory "repo/exe-0.1.0.0" $ do
setup_install []
runExe' "exe" [] >>= assertOutputContains "fromList [(0,2),(2,4)]"