Skip to content

Commit

Permalink
Skip several failing test cases
Browse files Browse the repository at this point in the history
Failures are tracked in issues
  haskell#7610
  haskell#7987
  haskell#7989
  • Loading branch information
robx committed Feb 28, 2022
1 parent e21565d commit 973528d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Test.Cabal.Prelude
main = setupAndCabalTest $ do
skipUnlessGhcVersion ">= 8.1"
skipIfGhcVersion "== 9.0.2 || == 9.2.1" -- https://github.com/haskell/cabal/issues/7987
withPackageDb $ do
withDirectory "mylib" $ setup_install_with_docs ["--ipid", "mylib-0.1.0.0"]
withDirectory "mysql" $ setup_install_with_docs ["--ipid", "mysql-0.1.0.0"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Test.Cabal.Prelude
main = setupTest $ do
-- No cabal test because per-component is broken with it
skipUnlessGhcVersion ">= 8.1"
skipIfGhcVersion "== 9.0.2 || == 9.2.1" -- https://github.com/haskell/cabal/issues/7987
withPackageDb $ do
let setup_install' args = setup_install_with_docs (["--cabal-file", "Includes2.cabal"] ++ args)
setup_install' ["mylib", "--cid", "mylib-0.1.0.0"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Data.List
import qualified Data.Char as Char
main = setupAndCabalTest $ do
skipUnlessGhcVersion ">= 8.1"
skipIfGhcVersion "== 9.0.2 || == 9.2.1" -- https://github.com/haskell/cabal/issues/7987
withPackageDb $ do
containers_id <- getIPID "containers"
withDirectory "repo/sigs-0.1.0.0" $ setup_install_with_docs ["--ipid", "sigs-0.1.0.0"]
Expand Down
6 changes: 6 additions & 0 deletions cabal-testsuite/PackageTests/ForeignLibs/setup.test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ import Test.Cabal.Prelude
main = setupAndCabalTest . recordMode DoNotRecord $ do
-- Foreign libraries don't work with GHC 7.6 and earlier
skipUnlessGhcVersion ">= 7.8"
skipIf "macOS, ghc 8.10.7 (#7989)" =<< do
-- https://github.com/haskell/cabal/issues/7989
osx <- isOSX
ghc <- isGhcVersion "== 8.0.2"
return $ osx && ghc

withPackageDb $ do
setup_install []
setup "copy" [] -- regression test #4156
Expand Down
6 changes: 6 additions & 0 deletions cabal-testsuite/PackageTests/Regression/T4025/setup.test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ import Test.Cabal.Prelude
-- support RPATH.
main = setupAndCabalTest $ do
skipIfWindows
skipIf "macOS, ghc 8.10.7 (#7610, #7988)" =<< do
-- https://github.com/haskell/cabal/issues/7610
-- https://github.com/haskell/cabal/issues/7988
osx <- isOSX
ghc <- isGhcVersion "== 8.10.7 || == 9.0.1"
return $ osx && ghc
setup "configure" ["--enable-executable-dynamic"]
setup "build" []
-- This should fail as it we should NOT be able to find the
Expand Down

0 comments on commit 973528d

Please sign in to comment.