File tree 14 files changed +42
-0
lines changed
cabal-testsuite/PackageTests
14 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1
1
import Test.Cabal.Prelude
2
2
-- Test internal custom preprocessor
3
3
main = cabalTest $ do
4
+ isWin <- isWindows
5
+ ghc94 <- isGhcVersion " == 9.4.*"
6
+ expectBrokenIf (isWin && ghc94) 8451 $ do
4
7
skipUnless " no Cabal for GHC" =<< hasCabalForGhc
5
8
6
9
-- old Cabal's ./Setup.hs output is difficult to normalise
Original file line number Diff line number Diff line change 1
1
import Test.Cabal.Prelude
2
2
main = cabalTest $ do
3
+ isWin <- isWindows
4
+ ghc94 <- isGhcVersion " == 9.4.*"
5
+ expectBrokenIf (isWin && ghc94) 8451 $ do
3
6
cabal " v2-build" [" foreign-opts-c-exe" ]
4
7
withPlan $ runPlanExe " foreign-opts-c" " foreign-opts-c-exe" []
Original file line number Diff line number Diff line change 1
1
import Test.Cabal.Prelude
2
2
main = cabalTest $ do
3
+ isWin <- isWindows
4
+ ghc94 <- isGhcVersion " == 9.4.*"
5
+ expectBrokenIf (isWin && ghc94) 8451 $ do
3
6
cabal " v2-build" [" foreign-opts-cxx-exe" ]
4
7
withPlan $ runPlanExe " foreign-opts-cxx" " foreign-opts-cxx-exe" []
Original file line number Diff line number Diff line change 1
1
import Test.Cabal.Prelude
2
2
3
3
main = cabalTest $ do
4
+ isWin <- isWindows
5
+ ghc94 <- isGhcVersion " == 9.4.*"
6
+ expectBrokenIf (isWin && ghc94) 8451 $ do
4
7
cabal " v2-bench"
5
8
[ " --benchmark-option=1"
6
9
, " --benchmark-options=\" 2 3\" "
Original file line number Diff line number Diff line change 1
1
import Test.Cabal.Prelude
2
2
3
3
main = cabalTest . void $ do
4
+ isWin <- isWindows
5
+ ghc94 <- isGhcVersion " == 9.4.*"
6
+ expectBrokenIf (isWin && ghc94) 8451 $ do
4
7
cabal' " v2-build" [" script.hs" ]
5
8
6
9
env <- getTestEnv
Original file line number Diff line number Diff line change 1
1
import Test.Cabal.Prelude
2
2
3
3
main = cabalTest . void $ do
4
+ isWin <- isWindows
5
+ ghc94 <- isGhcVersion " == 9.4.*"
6
+ expectBrokenIf (isWin && ghc94) 8451 $ do
4
7
cabal' " v2-build" [" script.hs" ]
5
8
cabal' " v2-build" [" script.hs" ]
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ import Test.Cabal.Prelude
2
2
import System.Directory (copyFile , removeFile )
3
3
4
4
main = cabalTest . void $ do
5
+ isWin <- isWindows
6
+ ghc94 <- isGhcVersion " == 9.4.*"
7
+ expectBrokenIf (isWin && ghc94) 8451 $ do
5
8
env <- getTestEnv
6
9
let td = testCurrentDir env
7
10
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ import Test.Cabal.Prelude
2
2
import System.Directory (copyFile , removeFile )
3
3
4
4
main = cabalTest . void $ do
5
+ isWin <- isWindows
6
+ ghc94 <- isGhcVersion " == 9.4.*"
7
+ expectBrokenIf (isWin && ghc94) 8451 $ do
5
8
env <- getTestEnv
6
9
let td = testCurrentDir env
7
10
Original file line number Diff line number Diff line change 1
1
import Test.Cabal.Prelude
2
2
3
3
main = cabalTest . void $ do
4
+ isWin <- isWindows
5
+ ghc94 <- isGhcVersion " == 9.4.*"
6
+ expectBrokenIf (isWin && ghc94) 8451 $ do
4
7
cabal' " v2-build" [" script.hs" ]
5
8
cabal' " v2-clean" [" script.hs" ]
6
9
Original file line number Diff line number Diff line change 1
1
import Test.Cabal.Prelude
2
2
3
3
main = cabalTest $ do
4
+ isWin <- isWindows
5
+ ghc94 <- isGhcVersion " == 9.4.*"
6
+ expectBrokenIf (isWin && ghc94) 8451 $ do
4
7
res <- cabal' " v2-run" [" script.hs" ]
5
8
assertOutputContains " Hello World" res
6
9
Original file line number Diff line number Diff line change 1
1
import Test.Cabal.Prelude
2
2
3
3
main = cabalTest . void $ do
4
+ isWin <- isWindows
5
+ ghc94 <- isGhcVersion " == 9.4.*"
6
+ expectBrokenIf (isWin && ghc94) 8451 $ do
4
7
cabal' " v2-run" [" with sp" ] >>= assertOutputContains " Hello World"
Original file line number Diff line number Diff line change 1
1
import Test.Cabal.Prelude
2
2
3
3
main = cabalTest . void $ do
4
+ isWin <- isWindows
5
+ ghc94 <- isGhcVersion " == 9.4.*"
6
+ expectBrokenIf (isWin && ghc94) 8451 $ do
4
7
cabal' " v2-run" [" script.hs" ]
5
8
cabal' " v2-run" [" script.hs" ]
Original file line number Diff line number Diff line change 1
1
import Test.Cabal.Prelude
2
2
3
3
main = cabalTest $ do
4
+ isWin <- isWindows
5
+ ghc94 <- isGhcVersion " == 9.4.*"
6
+ expectBrokenIf (isWin && ghc94) 8451 $ do
4
7
-- script is called "s.hs" to avoid Windows long path issue in CI
5
8
res <- cabal' " v2-run" [" s.hs" ]
6
9
assertOutputContains " Hello World" res
Original file line number Diff line number Diff line change 1
1
import Test.Cabal.Prelude
2
2
3
3
main = cabalTest $ do
4
+ isWin <- isWindows
5
+ ghc94 <- isGhcVersion " == 9.4.*"
6
+ expectBrokenIf (isWin && ghc94) 8451 $ do
4
7
cabal " v2-test"
5
8
[ " --test-option=1"
6
9
, " --test-options=\" 2 3\" "
You can’t perform that action at this time.
0 commit comments