-
Notifications
You must be signed in to change notification settings - Fork 86
/
ouroboros-consensus-test.cabal
381 lines (355 loc) · 15 KB
/
ouroboros-consensus-test.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
cabal-version: 3.0
name: ouroboros-consensus-test
version: 0.3.1.0
synopsis: Tests of the consensus layer
description: Tests of the consensus layer.
license: Apache-2.0
license-files: LICENSE
NOTICE
copyright: 2020-2023 Input Output Global Inc (IOG)
author: IOHK Engineering Team
maintainer: operations@iohk.io
category: Network
build-type: Simple
extra-source-files: CHANGELOG.md
source-repository head
type: git
location: https://github.com/input-output-hk/ouroboros-network
library
hs-source-dirs: src
exposed-modules:
Test.ThreadNet.General
Test.ThreadNet.Network
Test.ThreadNet.Ref.PBFT
Test.ThreadNet.Rekeying
Test.ThreadNet.TxGen
Test.ThreadNet.Util
Test.ThreadNet.Util.Expectations
Test.ThreadNet.Util.HasCreator
Test.ThreadNet.Util.NodeJoinPlan
Test.ThreadNet.Util.NodeRestarts
Test.ThreadNet.Util.NodeToNodeVersion
Test.ThreadNet.Util.NodeTopology
Test.ThreadNet.Util.Seed
Test.Util.Blob
Test.Util.BoolProps
Test.Util.ChainDB
Test.Util.ChainUpdates
Test.Util.ChunkInfo
Test.Util.Classify
Test.Util.Corruption
Test.Util.FileLock
Test.Util.FS.Sim.Error
Test.Util.FS.Sim.FsTree
Test.Util.FS.Sim.MockFS
Test.Util.FS.Sim.Pure
Test.Util.FS.Sim.STM
Test.Util.HardFork.Future
Test.Util.HardFork.OracularClock
Test.Util.InvertedMap
Test.Util.LogicalClock
Test.Util.MockChain
Test.Util.Orphans.Arbitrary
Test.Util.Orphans.IOLike
Test.Util.Orphans.NoThunks
Test.Util.Orphans.SignableRepresentation
Test.Util.Orphans.ToExpr
Test.Util.Paths
Test.Util.QSM
Test.Util.QuickCheck
Test.Util.Range
Test.Util.RefEnv
Test.Util.Schedule
Test.Util.Serialisation.Golden
Test.Util.Serialisation.Roundtrip
Test.Util.Shrink
Test.Util.SOP
Test.Util.Slots
Test.Util.Split
Test.Util.Stream
Test.Util.TestBlock
Test.Util.TestEnv
Test.Util.Time
Test.Util.Tracer
Test.Util.WithEq
build-depends: base >=4.14 && <4.17
, base16-bytestring
, binary
, bytestring >=0.10 && <0.12
, cardano-crypto-class
, cardano-ledger-binary:{testlib}
, cardano-prelude
, cborg >=0.2.2 && <0.3
, containers >=0.5 && <0.7
, contra-tracer
, deepseq
, directory
, fgl
, file-embed
, filepath
, generics-sop
, graphviz
, mtl >=2.2 && <2.3
, nothunks
, optparse-applicative
, QuickCheck
, quickcheck-state-machine
, quiet >=0.2 && <0.3
, random
, serialise >=0.2 && <0.3
, sop-core
, cardano-strict-containers
, tasty
, tasty-golden
, tasty-quickcheck
, typed-protocols
, template-haskell
, text >=1.2 && <1.3
, time
, tree-diff
, utf8-string
, io-classes
, io-sim
, ouroboros-network-api
, ouroboros-network
, ouroboros-network-framework
, ouroboros-network-mock
, ouroboros-network-protocols
, ouroboros-consensus ==0.3.1.0
, ouroboros-consensus-diffusion ==0.3.1.0
default-language: Haskell2010
ghc-options: -Wall
-Wcompat
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wmissing-export-lists
-Wunused-packages
-fno-ignore-asserts
test-suite test-consensus
type: exitcode-stdio-1.0
hs-source-dirs: test-consensus
main-is: Main.hs
other-modules:
Test.Consensus.BlockchainTime.Simple
Test.Consensus.HardFork.Forecast
Test.Consensus.HardFork.History
Test.Consensus.HardFork.Infra
Test.Consensus.HardFork.Summary
Test.Consensus.HardFork.Combinator
Test.Consensus.HardFork.Combinator.A
Test.Consensus.HardFork.Combinator.B
Test.Consensus.MiniProtocol.BlockFetch.Client
Test.Consensus.MiniProtocol.ChainSync.Client
Test.Consensus.MiniProtocol.LocalStateQuery.Server
Test.Consensus.Mempool
Test.Consensus.Mempool.Fairness
Test.Consensus.Mempool.Fairness.TestBlock
Test.Consensus.Node
Test.Consensus.ResourceRegistry
Test.Consensus.Util.MonadSTM.RAWLock
Test.Consensus.Util.Versioned
build-depends: base >=4.14 && <4.17
, async
, binary
, bytestring
, cardano-binary
, cardano-crypto-class
, cardano-slotting
, cborg
, containers
, contra-tracer
, deepseq
, directory
, generics-sop
, hashable
, mtl
, nothunks
, QuickCheck
, quickcheck-state-machine
, quiet
, random
, serialise
, tasty
, tasty-expected-failure
, tasty-hunit
, tasty-quickcheck
, temporary
, time
, tree-diff
, io-classes
, io-sim
, typed-protocols
, ouroboros-network
, ouroboros-network-api
, ouroboros-network-framework
, ouroboros-network-mock
, ouroboros-network-protocols
, ouroboros-network-protocols:testlib
, ouroboros-consensus ==0.3.1.0
, ouroboros-consensus-mock ==0.3.1.0
, ouroboros-consensus-test
, ouroboros-consensus-diffusion ==0.3.1.0
default-language: Haskell2010
ghc-options: -Wall
-Wcompat
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wmissing-export-lists
-Wunused-packages
-fno-ignore-asserts
-threaded
-rtsopts
test-suite test-storage
type: exitcode-stdio-1.0
hs-source-dirs: test-storage
main-is: Main.hs
other-modules:
Test.Ouroboros.Storage
Test.Ouroboros.Storage.ChainDB
Test.Ouroboros.Storage.ChainDB.Iterator
Test.Ouroboros.Storage.ChainDB.FollowerPromptness
Test.Ouroboros.Storage.ChainDB.GcSchedule
Test.Ouroboros.Storage.ChainDB.Model
Test.Ouroboros.Storage.ChainDB.Model.Test
Test.Ouroboros.Storage.ChainDB.Paths
Test.Ouroboros.Storage.ChainDB.StateMachine
Test.Ouroboros.Storage.ChainDB.StateMachine.Utils.RunOnRepl
Test.Ouroboros.Storage.FS
Test.Ouroboros.Storage.FS.StateMachine
Test.Ouroboros.Storage.ImmutableDB
Test.Ouroboros.Storage.ImmutableDB.Mock
Test.Ouroboros.Storage.ImmutableDB.Model
Test.Ouroboros.Storage.ImmutableDB.Primary
Test.Ouroboros.Storage.ImmutableDB.StateMachine
Test.Ouroboros.Storage.LedgerDB
Test.Ouroboros.Storage.LedgerDB.DiskPolicy
Test.Ouroboros.Storage.LedgerDB.InMemory
Test.Ouroboros.Storage.LedgerDB.OnDisk
Test.Ouroboros.Storage.LedgerDB.OrphanArbitrary
Test.Ouroboros.Storage.Orphans
Test.Ouroboros.Storage.TestBlock
Test.Ouroboros.Storage.VolatileDB
Test.Ouroboros.Storage.VolatileDB.Mock
Test.Ouroboros.Storage.VolatileDB.Model
Test.Ouroboros.Storage.VolatileDB.StateMachine
Test.Ouroboros.Storage.ChainDB.Unit
build-depends: base >=4.14 && <4.17
, bifunctors
, binary
, bytestring
, cardano-crypto-class
, cborg
, containers
, contra-tracer
, directory
, generics-sop
, hashable
, mtl
, nothunks
, pretty-show
, QuickCheck
, quickcheck-state-machine >=0.7.0
, random
, serialise
, tasty
, tasty-hunit
, tasty-quickcheck
, temporary
, text
, time
, tree-diff
, vector
, io-classes
, io-sim
, ouroboros-network-api
, ouroboros-network-mock
, ouroboros-consensus ==0.3.1.0
, ouroboros-consensus-test
default-language: Haskell2010
ghc-options: -Wall
-Wcompat
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wmissing-export-lists
-Wunused-packages
-fno-ignore-asserts
test-suite test-infra
type: exitcode-stdio-1.0
hs-source-dirs: test-infra
main-is: Main.hs
other-modules:
Ouroboros.Consensus.Util.Tests
Test.ThreadNet.Util.Tests
Test.Util.ChainUpdates.Tests
Test.Util.Schedule.Tests
Test.Util.Split.Tests
build-depends: base >=4.14 && <4.17
, QuickCheck
, tasty
, tasty-quickcheck
, ouroboros-consensus ==0.3.1.0
, ouroboros-consensus-test
default-language: Haskell2010
ghc-options: -Wall
-Wcompat
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wmissing-export-lists
-Wunused-packages
-fno-ignore-asserts
benchmark bench-mempool
type: exitcode-stdio-1.0
hs-source-dirs: bench-mempool
main-is: Main.hs
other-modules: Bench.Consensus.Mempool
, Bench.Consensus.MempoolWithMockedLedgerItf
, Bench.Consensus.Mempool.TestBlock
build-depends: base
, aeson
, bytestring
, cassava
, containers
, contra-tracer
, deepseq
, nothunks
, serialise >=0.2 && <0.3
, strict-stm
, tree-diff
, tasty
, tasty-bench
, tasty-hunit
, transformers
, text
, cardano-slotting
, ouroboros-consensus ==0.3.1.0
, ouroboros-consensus-test
default-language: Haskell2010
ghc-options: -Wall
-Wcompat
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wmissing-export-lists
-Wunused-packages
-Wno-unticked-promoted-constructors
-rtsopts
"-with-rtsopts=-A32m"
-- We use this option to avoid skewed results due to changes in cache-line
-- alignment. See
-- https://github.com/Bodigrim/tasty-bench#comparison-against-baseline
if impl(ghc >= 8.6)
ghc-options: -fproc-alignment=64