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: 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.9 && <4.20
30 -- this needs to match the in-tree lib:Cabal version
32 , Cabal-syntax ^>= 3.11.0.0
34 ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
42 Test.Cabal.CheckArMetadata
43 Test.Cabal.DecodeShowBuildInfo
45 Test.Cabal.OutputNormalizer
60 , aeson ^>= 1.4.2.0 || ^>=1.5.0.0 || ^>= 2.0.0.0 || ^>= 2.1.0.0 || ^>= 2.2.1.0
62 , attoparsec ^>= 0.13.2.2 || ^>=0.14.1
63 , base64-bytestring ^>= 1.0.0.0 || ^>= 1.1.0.0 || ^>= 1.2.0.0
64 , bytestring ^>= 0.10.0.2 || ^>= 0.11.0.0 || ^>= 0.12.0.0
65 , containers ^>= 0.5.0.0 || ^>= 0.6.0.1
66 , cryptohash-sha256 ^>= 0.11.101.0
67 , directory ^>= 1.2.0.1 || ^>= 1.3.0.0
68 , exceptions ^>= 0.10.0
69 , filepath ^>= 1.3.0.1 || ^>= 1.4.0.0
70 , network-wait ^>= 0.1.2.0 || ^>= 0.2.0.0
71 , optparse-applicative ^>= 0.14.3.0 || ^>=0.15.1.0 || ^>=0.16.0.0 || ^>= 0.17.0.0 || ^>= 0.18.1.0
72 , process ^>= 1.2.1.0 || ^>= 1.4.2.0 || ^>= 1.6.1.0
73 , regex-base ^>= 0.94.0.1
74 , regex-tdfa ^>= 1.2.3.1 || ^>=1.3.1.0
76 , array ^>= 0.4.0.1 || ^>= 0.5.0.0
78 , text ^>= 1.2.3.1 || ^>= 2.0.1 || ^>= 2.1
79 , transformers ^>= 0.3.0.0 || ^>= 0.4.2.0 || ^>= 0.5.2.0 || ^>= 0.6.0.2
83 , unix ^>= 2.6.0.0 || ^>= 2.7.0.0 || ^>= 2.8.0.0
88 executable cabal-tests
90 main-is: cabal-tests.hs
92 ghc-options: -threaded
95 -- constraints inherited via lib:cabal-testsuite component
99 , optparse-applicative
102 -- dependencies specific to exe:cabal-tests
103 , clock ^>= 0.7.2 || ^>=0.8
104 -- Extra dependencies used by PackageTests.
106 -- The runner allows the tests to use extra dependencies and the custom Prelude
107 -- from 'cabal-testsuite'.
108 -- However, if the tests use a dependency, say 'directory', and there are two
109 -- packages with the same unit id available in the store, the test fails since
110 -- it doesn't know which one to pick.
111 -- By including an extra dependency to directory, we force the test runner to
112 -- use a specific version directory, fixing the test failure.
114 -- See issue description and discussion: https://github.com/haskell/cabal/issues/8356
117 build-tool-depends: cabal-testsuite:setup
118 default-extensions: TypeOperators
120 -- this executable is needed by lib:cabal-testsuite
123 main-is: Setup.simple.hs
126 -- we only depend on even stable releases of lib:Cabal
127 -- and due to Custom complexity and ConstraintSetupCabalMaxVersion
128 -- it has to be the latest release version plus
129 -- you have to use the latest cabal-install release
130 setup-depends: Cabal == 3.10.*,
131 Cabal-syntax == 3.10.*,
132 base, filepath, directory