Re #7714: fix Linux CI by installing groff-base to get nroff
[cabal.git] / Cabal-tests / Cabal-tests.cabal
blobb22fc40a8ef783944d1483275f2aa5ce085ad553
1 cabal-version: >=1.10
2 name:          Cabal-tests
3 version:       3
4 copyright:     2003-2021, Cabal Development Team (see AUTHORS file)
5 license:       BSD3
6 license-file:  LICENSE
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 convinience.
13 category:      Distribution
14 build-type:    Simple
16 source-repository head
17   type:     git
18   location: https://github.com/haskell/cabal/
19   subdir:   Cabal-tests
21 -- Small, fast running tests.
22 test-suite unit-tests
23   type:             exitcode-stdio-1.0
24   hs-source-dirs:   tests
25   other-modules:
26     Test.Laws
27     Test.QuickCheck.Utils
28     UnitTests.Distribution.CabalSpecVersion
29     UnitTests.Distribution.Compat.CreatePipe
30     UnitTests.Distribution.Compat.Graph
31     UnitTests.Distribution.Compat.Time
32     UnitTests.Distribution.Described
33     UnitTests.Distribution.PkgconfigVersion
34     UnitTests.Distribution.Simple.Command
35     UnitTests.Distribution.Simple.Glob
36     UnitTests.Distribution.Simple.Program.GHC
37     UnitTests.Distribution.Simple.Program.Internal
38     UnitTests.Distribution.Simple.Utils
39     UnitTests.Distribution.SPDX
40     UnitTests.Distribution.System
41     UnitTests.Distribution.Types.GenericPackageDescription
42     UnitTests.Distribution.Utils.CharSet
43     UnitTests.Distribution.Utils.Generic
44     UnitTests.Distribution.Utils.Json
45     UnitTests.Distribution.Utils.NubList
46     UnitTests.Distribution.Utils.ShortText
47     UnitTests.Distribution.Utils.Structured
48     UnitTests.Distribution.Version
49     UnitTests.Orphans
51   main-is:          UnitTests.hs
52   build-depends:
53       array
54     , async               >=2.2.2 && <2.3
55     , base                >=0     && <5
56     , binary
57     , bytestring
58     , Cabal
59     , Cabal-described
60     , Cabal-QuickCheck
61     , containers
62     , deepseq
63     , Diff                >=0.4   && <0.5
64     , directory
65     , filepath
66     , integer-logarithms  >=1.0.2 && <1.1
67     , pretty
68     , QuickCheck          >=2.14  && <2.15
69     , rere                >=0.1   && <0.3
70     , tagged
71     , tasty               >=1.2.3 && <1.5
72     , tasty-hunit
73     , tasty-quickcheck
74     , temporary
75     , text
76     , transformers
78   ghc-options:      -Wall
79   default-language: Haskell2010
81   if !impl(ghc >=7.10)
82     build-depends: void
84   if !impl(ghc >=8.0)
85     build-depends: semigroups
87 test-suite parser-tests
88   type:             exitcode-stdio-1.0
89   hs-source-dirs:   tests
90   main-is:          ParserTests.hs
91   build-depends:
92       base
93     , base-compat       >=0.11.0  && <0.13
94     , bytestring
95     , Cabal
96     , Cabal-tree-diff
97     , Diff              >=0.4     && <0.5
98     , directory
99     , filepath
100     , tasty             >=1.2.3   && <1.5
101     , tasty-golden      >=2.3.1.1 && <2.4
102     , tasty-hunit
103     , tasty-quickcheck
105   ghc-options:      -Wall
106   default-language: Haskell2010
108   if !impl(ghc >=8.0)
109     build-depends: semigroups
111   if impl(ghc >=7.8)
112     build-depends: tree-diff >=0.1 && <0.3
114 test-suite check-tests
115   type:             exitcode-stdio-1.0
116   hs-source-dirs:   tests
117   main-is:          CheckTests.hs
118   build-depends:
119       base
120     , bytestring
121     , Cabal
122     , Diff          >=0.4     && <0.5
123     , directory
124     , filepath
125     , tasty         >=1.2.3   && <1.5
126     , tasty-golden  >=2.3.1.1 && <2.4
128   ghc-options:      -Wall
129   default-language: Haskell2010
131   if !impl(ghc >=8.0)
132     build-depends: semigroups
134 test-suite custom-setup-tests
135   type:             exitcode-stdio-1.0
136   hs-source-dirs:   tests/custom-setup
137   main-is:          CustomSetupTests.hs
138   other-modules:
139     CabalDoctestSetup
140     IdrisSetup
142   build-depends:
143       base
144     , Cabal
145     , directory
146     , filepath
147     , process
149   default-language: Haskell2010
151 test-suite hackage-tests
152   type:               exitcode-stdio-1.0
153   main-is:            HackageTests.hs
155   if os(windows)
156     buildable: False
158   hs-source-dirs:     tests
159   build-depends:
160       base
161     , bytestring
162     , Cabal
163     , Cabal-tree-diff
164     , containers
165     , deepseq
166     , directory
167     , filepath
169   build-depends:
170       base-compat           >=0.11.0   && <0.13
171     , base-orphans          >=0.6      && <0.9
172     , clock                 >=0.8      && <0.9
173     , optparse-applicative  >=0.13.2.0 && <0.17
174     , stm                   >=2.4.5.0  && <2.6
175     , tar                   >=0.5.0.3  && <0.6
177   if impl(ghc >=7.8)
178     build-depends: tree-diff >=0.1 && <0.3
180   ghc-options:        -Wall -rtsopts -threaded
181   default-extensions: CPP
182   default-language:   Haskell2010
184 test-suite rpmvercmp
185   type:             exitcode-stdio-1.0
186   main-is:          RPMVerCmp.hs
187   hs-source-dirs:   tests
188   build-depends:
189       base
190     , bytestring
191     , Cabal
193   build-depends:
194       QuickCheck
195     , tasty             >=1.2.3 && <1.5
196     , tasty-hunit
197     , tasty-quickcheck
199   c-sources:        tests/cbits/rpmvercmp.c
200   cc-options:       -Wall
201   ghc-options:      -Wall
202   default-language: Haskell2010
204 test-suite no-thunks-test
205   default-language: Haskell2010
206   ghc-options:      -Wall
207   type:             exitcode-stdio-1.0
208   main-is:          NoThunks.hs
209   hs-source-dirs:   tests
210   build-depends:
211       base
212     , bytestring
213     , Cabal
214     , tasty        >=1.2.3 && <1.5
215     , tasty-hunit
217   -- this is test is buildable on old GHCs
218   -- but it doesn't do anything.
219   if impl(ghc >=8.6)
220     build-depends: nothunks >=0.1.1.0 && <0.2