Skip to content

Commit bc67535

Browse files
authored
Merge pull request #5478 from IntersectMBO/aniketd/cddl-remove-old
CDDL: Switch to using HuddleSpec everywhere
2 parents d32192f + d1573c9 commit bc67535

File tree

41 files changed

+30
-3421
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+30
-3421
lines changed

eras/allegra/impl/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
### `testlib`
2929

30+
* Remove `huddle-cddl` and the `CDDL` modules.
3031
* Add `Test.Cardano.Ledger.Allegra.Binary.Golden`
3132
* Add `allegraDecodeDuplicateDelegCertSucceeds`
3233
* Add CDDL definitions for int64 types: `int64`, `min_int64`, `max_int64`, `negative_int64`, `positive_int64`, `nonzero_int64`

eras/allegra/impl/cardano-ledger-allegra.cabal

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ library testlib
132132
Test.Cardano.Ledger.Allegra.Binary.Annotator
133133
Test.Cardano.Ledger.Allegra.Binary.Cddl
134134
Test.Cardano.Ledger.Allegra.Binary.Golden
135-
Test.Cardano.Ledger.Allegra.CDDL
136135
Test.Cardano.Ledger.Allegra.Era
137136
Test.Cardano.Ledger.Allegra.Examples
138137
Test.Cardano.Ledger.Allegra.Imp
@@ -164,36 +163,12 @@ library testlib
164163
cardano-slotting,
165164
cardano-strict-containers,
166165
containers,
167-
cuddle >=0.4,
168166
generic-random,
169-
heredoc,
170167
microlens,
171168
small-steps,
172169
text,
173170
tree-diff,
174171

175-
executable huddle-cddl
176-
main-is: Main.hs
177-
hs-source-dirs: huddle-cddl
178-
other-modules: Paths_cardano_ledger_allegra
179-
default-language: Haskell2010
180-
ghc-options:
181-
-Wall
182-
-Wcompat
183-
-Wincomplete-record-updates
184-
-Wincomplete-uni-patterns
185-
-Wredundant-constraints
186-
-Wpartial-fields
187-
-Wunused-packages
188-
-threaded
189-
-rtsopts
190-
-with-rtsopts=-N
191-
192-
build-depends:
193-
base,
194-
cardano-ledger-binary:testlib >=1.3.4.0,
195-
testlib,
196-
197172
test-suite tests
198173
type: exitcode-stdio-1.0
199174
main-is: Main.hs
@@ -218,6 +193,7 @@ test-suite tests
218193
build-depends:
219194
base,
220195
cardano-ledger-allegra,
196+
cardano-ledger-allegra:cddl,
221197
cardano-ledger-binary:testlib,
222198
cardano-ledger-core:{cardano-ledger-core, testlib},
223199
cardano-ledger-shelley:testlib,

eras/allegra/impl/huddle-cddl/Main.hs

Lines changed: 0 additions & 8 deletions
This file was deleted.

eras/allegra/impl/test/Test/Cardano/Ledger/Allegra/Binary/CddlSpec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
module Test.Cardano.Ledger.Allegra.Binary.CddlSpec (spec) where
55

66
import Cardano.Ledger.Allegra (AllegraEra)
7+
import Cardano.Ledger.Allegra.HuddleSpec (allegraCDDL)
78
import Cardano.Ledger.Core
89
import Test.Cardano.Ledger.Allegra.Binary.Annotator ()
910
import Test.Cardano.Ledger.Allegra.Binary.Cddl (readAllegraCddlFiles)
10-
import Test.Cardano.Ledger.Allegra.CDDL (allegraCDDL)
1111
import Test.Cardano.Ledger.Binary.Cddl (
1212
beforeAllCddlFile,
1313
cddlDecoderEquivalenceSpec,

eras/allegra/impl/testlib/Test/Cardano/Ledger/Allegra/CDDL.hs

Lines changed: 0 additions & 169 deletions
This file was deleted.

eras/alonzo/impl/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
### `testlib`
6161

62+
* Remove `huddle-cddl` and the `CDDL` modules.
6263
* Add `Test.Cardano.Ledger.Alonzo.Binary.Golden`
6364
* Add `witsEmptyField`
6465
* Added `Arbitrary` instance for `AlonzoExtraConfig`

eras/alonzo/impl/cardano-ledger-alonzo.cabal

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ library testlib
156156
Test.Cardano.Ledger.Alonzo.Binary.RoundTrip
157157
Test.Cardano.Ledger.Alonzo.Binary.Twiddle
158158
Test.Cardano.Ledger.Alonzo.Binary.TxWitsSpec
159-
Test.Cardano.Ledger.Alonzo.CDDL
160159
Test.Cardano.Ledger.Alonzo.Era
161160
Test.Cardano.Ledger.Alonzo.Examples
162161
Test.Cardano.Ledger.Alonzo.Imp
@@ -199,10 +198,8 @@ library testlib
199198
cardano-strict-containers,
200199
cborg,
201200
containers,
202-
cuddle >=0.4,
203201
data-default,
204202
generic-random,
205-
heredoc,
206203
microlens,
207204
microlens-mtl,
208205
mtl,
@@ -212,28 +209,6 @@ library testlib
212209
time,
213210
tree-diff,
214211

215-
executable huddle-cddl
216-
main-is: Main.hs
217-
hs-source-dirs: huddle-cddl
218-
other-modules: Paths_cardano_ledger_alonzo
219-
default-language: Haskell2010
220-
ghc-options:
221-
-Wall
222-
-Wcompat
223-
-Wincomplete-record-updates
224-
-Wincomplete-uni-patterns
225-
-Wredundant-constraints
226-
-Wpartial-fields
227-
-Wunused-packages
228-
-threaded
229-
-rtsopts
230-
-with-rtsopts=-N
231-
232-
build-depends:
233-
base,
234-
cardano-ledger-binary:testlib >=1.5,
235-
testlib,
236-
237212
executable gen-golden
238213
main-is: GenerateGoldenFileMain.hs
239214
hs-source-dirs: test
@@ -286,7 +261,7 @@ test-suite tests
286261
base16-bytestring,
287262
bytestring,
288263
cardano-ledger-allegra,
289-
cardano-ledger-alonzo:{cardano-ledger-alonzo, testlib},
264+
cardano-ledger-alonzo:{cardano-ledger-alonzo, cddl, testlib},
290265
cardano-ledger-binary:{cardano-ledger-binary, testlib},
291266
cardano-ledger-core:{cardano-ledger-core, testlib},
292267
cardano-ledger-shelley:testlib,

eras/alonzo/impl/huddle-cddl/Main.hs

Lines changed: 0 additions & 8 deletions
This file was deleted.

eras/alonzo/impl/test/Test/Cardano/Ledger/Alonzo/Binary/CddlSpec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ module Test.Cardano.Ledger.Alonzo.Binary.CddlSpec (spec) where
55

66
import Cardano.Ledger.Allegra.Scripts
77
import Cardano.Ledger.Alonzo (AlonzoEra)
8+
import Cardano.Ledger.Alonzo.HuddleSpec (alonzoCDDL)
89
import Cardano.Ledger.Alonzo.Scripts (CostModels)
910
import Cardano.Ledger.Alonzo.TxWits (AlonzoTxWits, Redeemers)
1011
import Cardano.Ledger.Core
1112
import Cardano.Ledger.Plutus.Data (Data)
1213
import Test.Cardano.Ledger.Alonzo.Binary.Annotator ()
1314
import Test.Cardano.Ledger.Alonzo.Binary.Cddl (readAlonzoCddlFiles)
14-
import Test.Cardano.Ledger.Alonzo.CDDL (alonzoCDDL)
1515
import Test.Cardano.Ledger.Binary.Cddl (
1616
beforeAllCddlFile,
1717
cddlDecoderEquivalenceSpec,

0 commit comments

Comments
 (0)