Fix Setup.hs `--dependency` example
[cabal.git] / cabal-install / tests / UnitTests.hs
blob8434f623e82084988e7b8e5d18b5dc9e966dc618
1 module Main (main) where
3 import Test.Tasty
5 import qualified UnitTests.Distribution.Client.BuildReport
6 import qualified UnitTests.Distribution.Client.Configure
7 import qualified UnitTests.Distribution.Client.FetchUtils
8 import qualified UnitTests.Distribution.Client.GZipUtils
9 import qualified UnitTests.Distribution.Client.Get
10 import qualified UnitTests.Distribution.Client.Glob
11 import qualified UnitTests.Distribution.Client.IndexUtils
12 import qualified UnitTests.Distribution.Client.IndexUtils.Timestamp
13 import qualified UnitTests.Distribution.Client.Init
14 import qualified UnitTests.Distribution.Client.InstallPlan
15 import qualified UnitTests.Distribution.Client.JobControl
16 import qualified UnitTests.Distribution.Client.ProjectConfig
17 import qualified UnitTests.Distribution.Client.ProjectPlanning
18 import qualified UnitTests.Distribution.Client.Store
19 import qualified UnitTests.Distribution.Client.Tar
20 import qualified UnitTests.Distribution.Client.Targets
21 import qualified UnitTests.Distribution.Client.UserConfig
22 import qualified UnitTests.Distribution.Solver.Modular.Builder
23 import qualified UnitTests.Distribution.Solver.Modular.RetryLog
24 import qualified UnitTests.Distribution.Solver.Modular.Solver
25 import qualified UnitTests.Distribution.Solver.Modular.WeightedPSQ
26 import qualified UnitTests.Distribution.Solver.Types.OptionalStanza
28 main :: IO ()
29 main = do
30 initTests <- UnitTests.Distribution.Client.Init.tests
31 defaultMain $
32 testGroup
33 "Unit Tests"
34 [ testGroup
35 "UnitTests.Distribution.Client.BuildReport"
36 UnitTests.Distribution.Client.BuildReport.tests
37 , testGroup
38 "UnitTests.Distribution.Client.Configure"
39 UnitTests.Distribution.Client.Configure.tests
40 , testGroup
41 "UnitTests.Distribution.Client.FetchUtils"
42 UnitTests.Distribution.Client.FetchUtils.tests
43 , testGroup
44 "UnitTests.Distribution.Client.Get"
45 UnitTests.Distribution.Client.Get.tests
46 , testGroup
47 "UnitTests.Distribution.Client.Glob"
48 UnitTests.Distribution.Client.Glob.tests
49 , testGroup
50 "Distribution.Client.GZipUtils"
51 UnitTests.Distribution.Client.GZipUtils.tests
52 , testGroup
53 "UnitTests.Distribution.Client.IndexUtils"
54 UnitTests.Distribution.Client.IndexUtils.tests
55 , testGroup
56 "UnitTests.Distribution.Client.IndexUtils.Timestamp"
57 UnitTests.Distribution.Client.IndexUtils.Timestamp.tests
58 , testGroup
59 "Distribution.Client.Init"
60 initTests
61 , testGroup
62 "UnitTests.Distribution.Client.InstallPlan"
63 UnitTests.Distribution.Client.InstallPlan.tests
64 , testGroup
65 "UnitTests.Distribution.Client.JobControl"
66 UnitTests.Distribution.Client.JobControl.tests
67 , testGroup
68 "UnitTests.Distribution.Client.ProjectConfig"
69 UnitTests.Distribution.Client.ProjectConfig.tests
70 , testGroup
71 "UnitTests.Distribution.Client.ProjectPlanning"
72 UnitTests.Distribution.Client.ProjectPlanning.tests
73 , testGroup
74 "Distribution.Client.Store"
75 UnitTests.Distribution.Client.Store.tests
76 , testGroup
77 "Distribution.Client.Tar"
78 UnitTests.Distribution.Client.Tar.tests
79 , testGroup
80 "Distribution.Client.Targets"
81 UnitTests.Distribution.Client.Targets.tests
82 , testGroup
83 "UnitTests.Distribution.Client.UserConfig"
84 UnitTests.Distribution.Client.UserConfig.tests
85 , testGroup
86 "UnitTests.Distribution.Solver.Modular.Builder"
87 UnitTests.Distribution.Solver.Modular.Builder.tests
88 , testGroup
89 "UnitTests.Distribution.Solver.Modular.RetryLog"
90 UnitTests.Distribution.Solver.Modular.RetryLog.tests
91 , testGroup
92 "UnitTests.Distribution.Solver.Modular.Solver"
93 UnitTests.Distribution.Solver.Modular.Solver.tests
94 , testGroup
95 "UnitTests.Distribution.Solver.Modular.WeightedPSQ"
96 UnitTests.Distribution.Solver.Modular.WeightedPSQ.tests
97 , testGroup
98 "UnitTests.Distribution.Solver.Types.OptionalStanza"
99 UnitTests.Distribution.Solver.Types.OptionalStanza.tests