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: Test suite for Cabal and cabal-install
13 This package defines a shared test suite for Cabal and cabal-install.
14 category: Distribution
20 source-repository head
22 location: https://github.com/haskell/cabal/
23 subdir: cabal-testsuite
26 default-language: Haskell2010
29 , base >= 4.11 && < 4.21
30 -- this needs to match the in-tree lib:Cabal version
36 -fwarn-incomplete-uni-patterns
37 -fno-warn-unticked-promoted-constructors
45 Test.Cabal.CheckArMetadata
46 Test.Cabal.DecodeShowBuildInfo
48 Test.Cabal.OutputNormalizer
64 , aeson ^>= 1.4.2.0 || ^>=1.5.0.0 || ^>= 2.0.0.0 || ^>= 2.1.0.0 || ^>= 2.2.1.0
66 , base16-bytestring ^>= 0.1.1.5 || ^>= 1.0
67 , bytestring ^>= 0.10.0.2 || ^>= 0.11.0.0 || ^>= 0.12.0.0
68 , containers ^>= 0.5.0.0 || ^>= 0.6.0.1 || ^>= 0.7
69 , cryptohash-sha256 ^>= 0.11.101.0
70 , directory ^>= 1.2.0.1 || ^>= 1.3.0.0
71 , exceptions ^>= 0.10.0
72 , filepath ^>= 1.3.0.1 || ^>= 1.4.0.0 || ^>= 1.5.0.0
73 , network-wait ^>= 0.1.2.0 || ^>= 0.2.0.0
74 , optparse-applicative ^>= 0.14.3.0 || ^>=0.15.1.0 || ^>=0.16.0.0 || ^>= 0.17.0.0 || ^>= 0.18.1.0
75 , process ^>= 1.2.1.0 || ^>= 1.4.2.0 || ^>= 1.6.1.0
76 , regex-base ^>= 0.94.0.1
77 , regex-tdfa ^>= 1.2.3.1 || ^>=1.3.1.0
79 , array ^>= 0.4.0.1 || ^>= 0.5.0.0
80 , text ^>= 1.2.3.1 || ^>= 2.0.1 || ^>= 2.1
81 , transformers ^>= 0.3.0.0 || ^>= 0.4.2.0 || ^>= 0.5.2.0 || ^>= 0.6.0.2
85 , unix ^>= 2.6.0.0 || ^>= 2.7.0.0 || ^>= 2.8.0.0
90 executable cabal-tests
92 main-is: cabal-tests.hs
94 ghc-options: -threaded -rtsopts
95 -- Make sure these are built before the executable is run
96 build-tool-depends: cabal-testsuite:test-runtime-deps
99 -- constraints inherited via lib:cabal-testsuite component
102 , optparse-applicative
104 -- dependencies specific to exe:cabal-tests
105 , clock ^>= 0.7.2 || ^>=0.8
108 build-tool-depends: cabal-testsuite:setup
109 default-extensions: TypeOperators
111 -- this executable is needed by lib:cabal-testsuite
114 main-is: Setup.simple.hs
116 -- This executable component is used to describe the runtime dependencies of
117 -- the tests. The Main.hs file and resulting executable are not useful in any way.
119 -- Ideally this would be an empty library, but because build-type: Custom, we can't
120 -- have sublibraries.
122 -- If you require an external dependency for a test it must be listed here.
123 executable test-runtime-deps
124 default-language: Haskell2010
125 -- Apart from base that is a compile-time dependency, the rest are runtime dependencies
140 main-is: static/Main.hs
147 -- we only depend on even stable releases of lib:Cabal
148 -- and due to Custom complexity and ConstraintSetupCabalMaxVersion
149 -- it has to be the latest release version plus
150 -- you have to use the latest cabal-install release
151 setup-depends: Cabal == 3.12.*,
152 Cabal-syntax == 3.12.*,
153 base, filepath, directory