-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert
validate.sh
to cabal-validate
Closes #10317. A Haskell script will be easier to maintain and expand than the existing Bash script. This also adds a `--pattern PATTERN` option which lets you filter tests across all test suites.
- Loading branch information
Showing
5 changed files
with
995 additions
and
547 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
cabal-version: 3.0 | ||
name: cabal-validate | ||
version: 1.0.0 | ||
copyright: 2024-2024, Cabal Development Team (see AUTHORS file) | ||
license: BSD-3-Clause | ||
author: Cabal Development Team <[email protected]> | ||
synopsis: An internal tool for building and testing the Cabal package manager | ||
build-type: Simple | ||
|
||
common warnings | ||
ghc-options: -Wall | ||
|
||
executable cabal-validate | ||
import: warnings | ||
default-language: Haskell2010 | ||
default-extensions: | ||
OverloadedStrings | ||
, TypeApplications | ||
ghc-options: -O -threaded -rtsopts -with-rtsopts=-N | ||
|
||
if impl(ghc <9.6) | ||
-- Pattern exhaustiveness checker is not as good, misses a case. | ||
ghc-options: -Wno-incomplete-patterns | ||
|
||
main-is: Main.hs | ||
hs-source-dirs: main | ||
|
||
build-depends: | ||
base >=4 && <5 | ||
, ansi-terminal >=1 && <2 | ||
, turtle >=1 && <2 | ||
, optparse-applicative >=0.18 && <1 | ||
, containers >=0.6 && <1 | ||
, directory >=1.0 && <2 | ||
, text >=2 && <3 | ||
, terminal-size >=0.3 && <1 | ||
, time >=1 && <2 |
Oops, something went wrong.