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
70 , QuickCheck >=2.14 && <2.15
71 , tasty >=1.2.3 && <1.6
73 , tasty-quickcheck <0.12
78 default-language: Haskell2010
80 test-suite parser-tests
81 type: exitcode-stdio-1.0
83 main-is: ParserTests.hs
86 , base-compat >=0.11.0 && <0.14
93 , tasty >=1.2.3 && <1.6
94 , tasty-golden >=2.3.1.1 && <2.4
96 , tree-diff >=0.1 && <0.4
99 default-language: Haskell2010
101 test-suite check-tests
102 type: exitcode-stdio-1.0
103 hs-source-dirs: tests
104 main-is: CheckTests.hs
113 , tasty >=1.2.3 && <1.6
114 , tasty-golden >=2.3.1.1 && <2.4
117 default-language: Haskell2010
119 test-suite custom-setup-tests
120 type: exitcode-stdio-1.0
121 hs-source-dirs: tests/custom-setup
122 main-is: CustomSetupTests.hs
135 default-language: Haskell2010
137 test-suite hackage-tests
138 type: exitcode-stdio-1.0
139 main-is: HackageTests.hs
142 hs-source-dirs: tests
154 base-compat >=0.11.0 && <0.14
155 , base-orphans >=0.6 && <0.10
156 , clock >=0.8 && <0.9
157 , optparse-applicative >=0.13.2.0 && <0.19
158 , tar >=0.5.0.3 && <0.7
159 , tree-diff >=0.1 && <0.4
161 ghc-options: -Wall -rtsopts -threaded
162 default-extensions: CPP
163 default-language: Haskell2010
166 type: exitcode-stdio-1.0
167 main-is: RPMVerCmp.hs
168 hs-source-dirs: tests
176 , tasty >=1.2.3 && <1.6
178 , tasty-quickcheck <0.12
180 c-sources: tests/cbits/rpmvercmp.c
183 default-language: Haskell2010
185 test-suite no-thunks-test
186 default-language: Haskell2010
188 type: exitcode-stdio-1.0
190 hs-source-dirs: tests
195 , tasty >=1.2.3 && <1.6
198 -- this is test is buildable on old GHCs
199 -- but it doesn't do anything.
201 build-depends: nothunks >=0.1.1.0 && <0.3