4 copyright: 2003-2023, 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
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.PkgconfigVersion
39 UnitTests.Distribution.Simple.Command
40 UnitTests.Distribution.Simple.Glob
41 UnitTests.Distribution.Simple.Program.GHC
42 UnitTests.Distribution.Simple.Program.Internal
43 UnitTests.Distribution.Simple.Utils
44 UnitTests.Distribution.SPDX
45 UnitTests.Distribution.System
46 UnitTests.Distribution.Types.GenericPackageDescription
47 UnitTests.Distribution.Utils.CharSet
48 UnitTests.Distribution.Utils.Generic
49 UnitTests.Distribution.Utils.Json
50 UnitTests.Distribution.Utils.NubList
51 UnitTests.Distribution.Utils.ShortText
52 UnitTests.Distribution.Utils.Structured
53 UnitTests.Distribution.Version
59 , async >=2.2.2 && <2.3
73 , integer-logarithms >=1.0.2 && <1.1
75 , QuickCheck >=2.14 && <2.15
78 , tasty >=1.2.3 && <1.6
86 default-language: Haskell2010
88 test-suite parser-tests
89 type: exitcode-stdio-1.0
91 main-is: ParserTests.hs
94 , base-compat >=0.11.0 && <0.14
101 , tasty >=1.2.3 && <1.6
102 , tasty-golden >=2.3.1.1 && <2.4
105 , tree-diff >=0.1 && <0.4
108 default-language: Haskell2010
110 test-suite check-tests
111 type: exitcode-stdio-1.0
112 hs-source-dirs: tests
113 main-is: CheckTests.hs
122 , tasty >=1.2.3 && <1.6
123 , tasty-expected-failure
124 , tasty-golden >=2.3.1.1 && <2.4
127 default-language: Haskell2010
129 test-suite custom-setup-tests
130 type: exitcode-stdio-1.0
131 hs-source-dirs: tests/custom-setup
132 main-is: CustomSetupTests.hs
145 default-language: Haskell2010
147 test-suite hackage-tests
148 type: exitcode-stdio-1.0
149 main-is: HackageTests.hs
152 hs-source-dirs: tests
165 base-compat >=0.11.0 && <0.14
166 , base-orphans >=0.6 && <0.10
167 , clock >=0.8 && <0.9
168 , optparse-applicative >=0.13.2.0 && <0.19
169 , stm >=2.4.5.0 && <2.6
170 , tar >=0.5.0.3 && <0.7
171 , tree-diff >=0.1 && <0.4
173 ghc-options: -Wall -rtsopts -threaded
174 default-extensions: CPP
175 default-language: Haskell2010
178 type: exitcode-stdio-1.0
179 main-is: RPMVerCmp.hs
180 hs-source-dirs: tests
188 , tasty >=1.2.3 && <1.6
192 c-sources: tests/cbits/rpmvercmp.c
195 default-language: Haskell2010
197 test-suite no-thunks-test
198 default-language: Haskell2010
200 type: exitcode-stdio-1.0
202 hs-source-dirs: tests
207 , tasty >=1.2.3 && <1.6
210 -- this is test is buildable on old GHCs
211 -- but it doesn't do anything.
213 build-depends: nothunks >=0.1.1.0 && <0.2