-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
cabal-testsuite
improvements (haskell#10225)
* Improve bat scripts for CCompilerOverride * Ensure Windows tests can cleanup the temp directory * Implement `flaky` combinator * Remove outdated tests * Remove broken tests These tests were testing for messages that were removed with the `cabal check` rework. * Make `skip` and `broken` messages uniform * Mark flaky tests * Re-enable DeterministicTrivial * Fix MacOS canonical paths * Extend cabal-testsuite readme with `flaky` * Skip non-terminating tests in Windows CI --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Test.Cabal.Prelude | ||
main = setupAndCabalTest $ do | ||
skipUnlessGhcVersion ">= 8.1" | ||
skipUnless "no profiling libs" =<< hasProfiledLibraries | ||
skipIfNoProfiledLibraries | ||
setup "configure" ["--enable-profiling"] | ||
setup "build" [] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Test.Cabal.Prelude | ||
main = | ||
cabalTest $ expectBrokenIf isWindows 10191 $ withShorterPathForNewBuildStore $ do | ||
cabalTest $ expectBrokenIfWindows 10191 $ withShorterPathForNewBuildStore $ do | ||
skipUnlessGhcVersion ">= 8.1" | ||
withRepo "repo" $ do | ||
cabal "v2-build" ["T6385"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
@echo OFF | ||
|
||
where /q clang.exe | ||
|
||
IF %ERRORLEVEL% EQU 0 ( | ||
call clang.exe -DNOERROR6 %* | ||
EXIT /B %ERRORLEVEL% | ||
) | ||
|
||
ECHO "Cannot find C compiler" | ||
EXIT /B 1 | ||
REM replace the libdir with the path to the compiler | ||
FOR /f "delims=" %%A in ('call ghc.exe --print-libdir') do set "var=%%A" | ||
setlocal EnableDelayedExpansion | ||
CALL !var:lib=mingw\bin\clang.exe! -DNOERROR6 %* | ||
EXIT /B %ERRORLEVEL% |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
@echo OFF | ||
|
||
where /q gcc.exe | ||
|
||
IF %ERRORLEVEL% EQU 0 ( | ||
call gcc.exe -DNOERROR6 %* | ||
EXIT /B %ERRORLEVEL% | ||
) | ||
|
||
ECHO "Cannot find C compiler" | ||
EXIT /B 1 | ||
REM replace the libdir with the path to the compiler | ||
FOR /f "delims=" %%A in ('call ghc.exe --print-libdir') do set "var=%%A" | ||
setlocal EnableDelayedExpansion | ||
CALL !var:lib=mingw\bin\gcc.exe! -DNOERROR6 %* | ||
EXIT /B %ERRORLEVEL% |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = setupTest $ do | ||
skipIf "ghc < 7.8" =<< isGhcVersion "< 7.8" | ||
skipIfGhcVersion "< 7.8" | ||
setup "configure" [] | ||
res <- setup' "build" [] | ||
assertOutputContains "= Post common block elimination =" res |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.