forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update ghc versions used. * Disable huge number of failing test for ghc == 9.4.* on Windows.
- Loading branch information
Showing
59 changed files
with
263 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/Backpack/Includes2/setup-internal.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/Backpack/Includes3/setup-internal.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/Backpack/Includes4/setup.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/Backpack/Includes5/setup.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import Test.Cabal.Prelude | ||
main = setupAndCabalTest $ do | ||
skipUnlessGhcVersion ">= 8.1" | ||
skipUnlessGhcVersion ">= 8.1" | ||
isWin <- isWindows | ||
ghc94 <- isGhcVersion "== 9.4.*" | ||
expectBrokenIf (isWin && ghc94) 9414 $ do | ||
skipUnless "no profiling libs" =<< hasProfiledLibraries | ||
setup "configure" ["--enable-profiling"] | ||
setup "build" [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import Test.Cabal.Prelude | ||
main = setupAndCabalTest $ do | ||
skipUnlessGhcVersion ">= 8.1" | ||
skipUnlessGhcVersion ">= 8.1" | ||
isWin <- isWindows | ||
ghc94 <- isGhcVersion "== 9.4.*" | ||
expectBrokenIf (isWin && ghc94) 9414 $ do | ||
setup "configure" [] | ||
setup "build" [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
import Test.Cabal.Prelude | ||
-- Test if exitcode-stdio-1.0 benchmark builds correctly | ||
main = setupAndCabalTest $ setup_build ["--enable-benchmarks"] | ||
main = setupAndCabalTest $ do | ||
isWin <- isWindows | ||
ghc94 <- isGhcVersion "== 9.4.*" | ||
expectBrokenIf (isWin && ghc94) 9414 $ | ||
setup_build ["--enable-benchmarks"] |
6 changes: 5 additions & 1 deletion
6
cabal-testsuite/PackageTests/BuildDeps/InternalLibrary1/setup.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
import Test.Cabal.Prelude | ||
-- Test executable depends on internal library. | ||
main = setupAndCabalTest $ setup_build [] | ||
main = setupAndCabalTest $ do | ||
isWin <- isWindows | ||
ghc94 <- isGhcVersion "== 9.4.*" | ||
expectBrokenIf (isWin && ghc94) 9414 $ | ||
setup_build [] | ||
|
14 changes: 9 additions & 5 deletions
14
cabal-testsuite/PackageTests/BuildDeps/InternalLibrary2/setup.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import Test.Cabal.Prelude | ||
main = setupAndCabalTest . withPackageDb $ do | ||
withDirectory "to-install" $ setup_install [] | ||
setup_build [] | ||
r <- runExe' "lemon" [] | ||
assertEqual | ||
main = setupAndCabalTest $ do | ||
isWin <- isWindows | ||
ghc94 <- isGhcVersion "== 9.4.*" | ||
expectBrokenIf (isWin && ghc94) 9414 $ | ||
withPackageDb $ do | ||
withDirectory "to-install" $ setup_install [] | ||
setup_build [] | ||
r <- runExe' "lemon" [] | ||
assertEqual | ||
("executable should have linked with the internal library") | ||
("foo foo myLibFunc internal") | ||
(concatOutput (resultOutput r)) |
20 changes: 12 additions & 8 deletions
20
cabal-testsuite/PackageTests/BuildDeps/InternalLibrary3/setup.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import Test.Cabal.Prelude | ||
-- Test that internal library is preferred to an installed on | ||
-- with the same name and LATER version | ||
main = setupAndCabalTest . withPackageDb $ do | ||
withDirectory "to-install" $ setup_install [] | ||
setup_build [] | ||
r <- runExe' "lemon" [] | ||
assertEqual | ||
("executable should have linked with the internal library") | ||
("foo foo myLibFunc internal") | ||
(concatOutput (resultOutput r)) | ||
main = setupAndCabalTest $ do | ||
isWin <- isWindows | ||
ghc94 <- isGhcVersion "== 9.4.*" | ||
expectBrokenIf (isWin && ghc94) 9414 $ | ||
withPackageDb $ do | ||
withDirectory "to-install" $ setup_install [] | ||
setup_build [] | ||
r <- runExe' "lemon" [] | ||
assertEqual | ||
("executable should have linked with the internal library") | ||
("foo foo myLibFunc internal") | ||
(concatOutput (resultOutput r)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
cabal-testsuite/PackageTests/BuildDeps/TargetSpecificDeps2/setup.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
import Test.Cabal.Prelude | ||
-- This is a control on ../TargetSpecificDeps1/setup.test.hs; it should | ||
-- succeed. | ||
main = setupAndCabalTest $ setup_build [] | ||
main = setupAndCabalTest $ do | ||
isWin <- isWindows | ||
ghc94 <- isGhcVersion "== 9.4.*" | ||
expectBrokenIf (isWin && ghc94) 9414 $ | ||
setup_build [] |
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/BuildTools/Internal/setup.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import Test.Cabal.Prelude | ||
-- Test PATH-munging | ||
main = setupAndCabalTest $ do | ||
isWin <- isWindows | ||
ghc94 <- isGhcVersion "== 9.4.*" | ||
expectBrokenIf (isWin && ghc94) 9414 $ do | ||
setup_build [] | ||
runExe' "hello-world" [] | ||
>>= assertOutputContains "1111" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = setupTest $ do | ||
skipUnlessGhcVersion ">= 7.8" | ||
skipUnlessGhcVersion ">= 7.8" | ||
isWin <- isWindows | ||
ghc94 <- isGhcVersion "== 9.4.*" | ||
expectBrokenIf (isWin && ghc94) 9414 $ do | ||
setup "configure" [] | ||
res <- setup' "build" [] | ||
assertOutputContains "= Post common block elimination =" res |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = setupTest $ do | ||
skipIf "ghc < 7.8" =<< isGhcVersion "< 7.8" | ||
skipIf "ghc < 7.8" =<< isGhcVersion "< 7.8" | ||
isWin <- isWindows | ||
ghc94 <- isGhcVersion "== 9.4.*" | ||
expectBrokenIf (isWin && ghc94) 9414 $ do | ||
setup "configure" [] | ||
res <- setup' "build" [] | ||
assertOutputContains "= Post common block elimination =" res |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/ConfigureComponent/SubLib/setup-explicit.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = setupAndCabalTest $ withPackageDb $ do | ||
skipUnlessGhcVersion ">= 8.8" | ||
setup_install ["hie-local"] | ||
env <- getTestEnv | ||
shouldExist $ testLibInstallDir env </> "hie-local-0.1.0.0" </> "extra-compilation-artifacts" </> "hie" </> "HieLocal.hie" | ||
main = setupAndCabalTest $ do | ||
isWin <- isWindows | ||
ghc94 <- isGhcVersion "== 9.4.*" | ||
expectBrokenIf (isWin && ghc94) 9414 $ do | ||
withPackageDb $ do | ||
skipUnlessGhcVersion ">= 8.8" | ||
setup_install ["hie-local"] | ||
env <- getTestEnv | ||
shouldExist $ testLibInstallDir env </> "hie-local-0.1.0.0" </> "extra-compilation-artifacts" </> "hie" </> "HieLocal.hie" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
cabal-testsuite/PackageTests/InternalLibraries/Haddock/haddock.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import Test.Cabal.Prelude | ||
-- https://github.com/haskell/cabal/issues/1919 | ||
main = setupAndCabalTest $ | ||
main = setupAndCabalTest $ do | ||
isWin <- isWindows | ||
ghc94 <- isGhcVersion "== 9.4.*" | ||
expectBrokenIf (isWin && ghc94) 9414 $ | ||
withPackageDb $ do | ||
setup_install [] | ||
setup "haddock" [] |
5 changes: 4 additions & 1 deletion
5
cabal-testsuite/PackageTests/InternalLibraries/Library/setup.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
cabal-testsuite/PackageTests/InternalLibraries/setup-gen-script.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/InternalLibraries/setup-per-component.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.