4 copyright: 2003-2024, Cabal Development Team (see AUTHORS file)
7 author: Cabal Development Team <cabal-devel@haskell.org>
8 maintainer: cabal-devel@haskell.org
9 homepage: http://www.haskell.org/cabal/
10 bug-reports: https://github.com/haskell/cabal/issues
11 synopsis: Tests for Cabal library
12 description: The tests are external for development flows convenience.
13 category: Distribution
16 source-repository head
18 location: https://github.com/haskell/cabal/
21 -- Common utilities which can be used by all tests.
24 exposed-modules: Test.Utils.TempTestDir
25 build-depends: base, directory, Cabal, filepath, exceptions
27 -- Small, fast running tests.
29 type: exitcode-stdio-1.0
34 UnitTests.Distribution.CabalSpecVersion
35 UnitTests.Distribution.Compat.Graph
36 UnitTests.Distribution.Compat.Time
37 UnitTests.Distribution.Described
38 UnitTests.Distribution.PackageDescription.Check
39 UnitTests.Distribution.PkgconfigVersion
40 UnitTests.Distribution.Simple.Command
41 UnitTests.Distribution.Simple.Glob
42 UnitTests.Distribution.Simple.Program.GHC
43 UnitTests.Distribution.Simple.Program.Internal
44 UnitTests.Distribution.Simple.Utils
45 UnitTests.Distribution.SPDX
46 UnitTests.Distribution.System
47 UnitTests.Distribution.Types.GenericPackageDescription
48 UnitTests.Distribution.Utils.CharSet
49 UnitTests.Distribution.Utils.Generic
50 UnitTests.Distribution.Utils.Json
51 UnitTests.Distribution.Utils.NubList
52 UnitTests.Distribution.Utils.ShortText
53 UnitTests.Distribution.Utils.Structured
54 UnitTests.Distribution.Version
71 , QuickCheck >=2.14 && <2.15
72 , tasty >=1.2.3 && <1.6
79 default-language: Haskell2010
81 test-suite parser-tests
82 type: exitcode-stdio-1.0
84 main-is: ParserTests.hs
87 , base-compat >=0.11.0 && <0.14
94 , tasty >=1.2.3 && <1.6
95 , tasty-golden >=2.3.1.1 && <2.4
97 , tree-diff >=0.1 && <0.4
100 default-language: Haskell2010
102 test-suite check-tests
103 type: exitcode-stdio-1.0
104 hs-source-dirs: tests
105 main-is: CheckTests.hs
114 , tasty >=1.2.3 && <1.6
115 , tasty-golden >=2.3.1.1 && <2.4
118 default-language: Haskell2010
120 test-suite custom-setup-tests
121 type: exitcode-stdio-1.0
122 hs-source-dirs: tests/custom-setup
123 main-is: CustomSetupTests.hs
136 default-language: Haskell2010
138 test-suite hackage-tests
139 type: exitcode-stdio-1.0
140 main-is: HackageTests.hs
143 hs-source-dirs: tests
155 base-compat >=0.11.0 && <0.14
156 , base-orphans >=0.6 && <0.10
157 , clock >=0.8 && <0.9
158 , optparse-applicative >=0.13.2.0 && <0.19
159 , tar >=0.5.0.3 && <0.7
160 , tree-diff >=0.1 && <0.4
162 ghc-options: -Wall -rtsopts -threaded
163 default-extensions: CPP
164 default-language: Haskell2010
167 type: exitcode-stdio-1.0
168 main-is: RPMVerCmp.hs
169 hs-source-dirs: tests
177 , tasty >=1.2.3 && <1.6
181 c-sources: tests/cbits/rpmvercmp.c
184 default-language: Haskell2010
186 test-suite no-thunks-test
187 default-language: Haskell2010
189 type: exitcode-stdio-1.0
191 hs-source-dirs: tests
196 , tasty >=1.2.3 && <1.6
199 -- this is test is buildable on old GHCs
200 -- but it doesn't do anything.
202 build-depends: nothunks >=0.1.1.0 && <0.3