File tree 4 files changed +24
-13
lines changed
cabal-testsuite/PackageTests 4 files changed +24
-13
lines changed Original file line number Diff line number Diff line change @@ -166,15 +166,13 @@ jobs:
166
166
# Have to disable *-suite validation:
167
167
# - the [email protected] problem is tracked at https://github.com/haskell/cabal/issues/8858
168
168
# - but curently can't run it with GHC 9.6, tracking: https://github.com/haskell/cabal/issues/8883
169
- if : (runner.os != 'Windows') || (matrix.ghc != '9.6.3')
170
169
run : sh validate.sh $FLAGS -s lib-suite
171
170
172
171
- name : Validate cli-tests
173
172
run : sh validate.sh $FLAGS -s cli-tests
174
173
175
174
- name : Validate cli-suite
176
175
# Have to disable *-suite validation, see above the comment for lib-suite
177
- if : (runner.os != 'Windows') || (matrix.ghc != '9.6.3')
178
176
run : sh validate.sh $FLAGS -s cli-suite
179
177
180
178
validate-old-ghcs :
Original file line number Diff line number Diff line change
1
+ @ echo OFF
2
+
3
+ where /q clang.exe
4
+
5
+ IF %ERRORLEVEL% EQU 0 (
6
+ call clang.exe -DNOERROR6 %*
7
+ EXIT /B %ERRORLEVEL%
8
+ )
9
+
10
+ ECHO " Cannot find C compiler"
11
+ EXIT /B 1
Original file line number Diff line number Diff line change @@ -6,16 +6,17 @@ import Test.Cabal.Prelude
6
6
main = setupAndCabalTest $ do
7
7
skipUnlessGhcVersion " >= 8.8"
8
8
isWin <- isWindows
9
- ghc94 <- isGhcVersion " == 9.4.* "
9
+ ghc94 <- isGhcVersion " >= 9.4.1 "
10
10
env <- getTestEnv
11
11
let pwd = testCurrentDir env
12
- customCC = pwd ++ " /custom-cc" ++ if isWin then " .bat" else " "
12
+ win_suffix = if ghc94 then " -clang.bat" else " .bat"
13
+ customCC =
14
+ pwd ++ " /custom-cc" ++ if isWin then win_suffix else " "
13
15
14
- expectBrokenIf (isWin && ghc94) 8451 $ do
15
- setup " configure"
16
- [ " --ghc-option=-DNOERROR1"
17
- , " --ghc-option=-optc=-DNOERROR2"
18
- , " --ghc-option=-optP=-DNOERROR3"
19
- , " --with-gcc=" ++ customCC
20
- ]
21
- setup " build" [" -v2" ]
16
+ setup " configure"
17
+ [ " --ghc-option=-DNOERROR1"
18
+ , " --ghc-option=-optc=-DNOERROR2"
19
+ , " --ghc-option=-optP=-DNOERROR3"
20
+ , " --with-gcc=" ++ customCC
21
+ ]
22
+ setup " build" [" -v2" ]
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import Distribution.Simple.Program.Types
17
17
import Distribution.System
18
18
import Distribution.Verbosity
19
19
import Distribution.Version
20
+ import System.Directory
20
21
21
22
import Test.Cabal.Prelude
22
23
@@ -27,7 +28,7 @@ main = setupAndCabalTest . recordMode DoNotRecord $ do
27
28
-- Foreign libraries don't work with GHC 7.6 and earlier
28
29
skipUnlessGhcVersion " >= 7.8"
29
30
win <- isWindows
30
- ghc94 <- isGhcVersion " == 9.4.* "
31
+ ghc94 <- isGhcVersion " >= 9.4.1 "
31
32
expectBrokenIf (win && ghc94) 8451 $
32
33
withPackageDb $ do
33
34
setup_install []
You can’t perform that action at this time.
0 commit comments