Skip to content

Commit 82be608

Browse files
committed
Extract testlib sublibrary in cardano-crypto-wrapper
and use it in the test suite
1 parent 09968d7 commit 82be608

29 files changed

+73
-40
lines changed

eras/byron/crypto/CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Revision history for `cardano-crypto-wrapper`
22

3-
## 1.6.0.1
3+
## 1.6.1.0
44

5-
*
5+
### `testlib`
6+
7+
* Added `testlib` sublibrary as replacement of `cardano-crypto-test` package
68

79
## 1.6.0.0
810

eras/byron/crypto/cardano-crypto-wrapper.cabal

Lines changed: 60 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 3.0
22
name: cardano-crypto-wrapper
3-
version: 1.6.0.0
3+
version: 1.6.1.0
44
license: Apache-2.0
55
maintainer: operations@iohk.io
66
author: IOHK
@@ -13,24 +13,24 @@ description:
1313
category: Currency
1414
build-type: Simple
1515
data-files:
16-
test/golden/AbstractHash
17-
test/golden/DecShare
18-
test/golden/EncShare
19-
test/golden/PassPhrase
20-
test/golden/RedeemSignature
21-
test/golden/RedeemSigningKey
22-
test/golden/RedeemVerificationKey
23-
test/golden/Secret
24-
test/golden/SecretProof
25-
test/golden/Signature
26-
test/golden/SigningKey
27-
test/golden/VerificationKey
28-
test/golden/VssPublicKey
29-
test/golden/json/ProtocolMagic0_Legacy_HasNetworkMagic
30-
test/golden/json/ProtocolMagic1_Legacy_HasNetworkMagic
31-
test/golden/json/ProtocolMagic2_Legacy_HasNetworkMagic
32-
test/golden/json/ProtocolMagic_Legacy_NMMustBeJust
33-
test/golden/json/ProtocolMagic_Legacy_NMMustBeNothing
16+
golden/AbstractHash
17+
golden/DecShare
18+
golden/EncShare
19+
golden/PassPhrase
20+
golden/RedeemSignature
21+
golden/RedeemSigningKey
22+
golden/RedeemVerificationKey
23+
golden/Secret
24+
golden/SecretProof
25+
golden/Signature
26+
golden/SigningKey
27+
golden/VerificationKey
28+
golden/VssPublicKey
29+
golden/json/ProtocolMagic0_Legacy_HasNetworkMagic
30+
golden/json/ProtocolMagic1_Legacy_HasNetworkMagic
31+
golden/json/ProtocolMagic2_Legacy_HasNetworkMagic
32+
golden/json/ProtocolMagic_Legacy_NMMustBeJust
33+
golden/json/ProtocolMagic_Legacy_NMMustBeNothing
3434

3535
extra-source-files:
3636
CHANGELOG.md
@@ -98,22 +98,54 @@ library
9898
nothunks,
9999
text,
100100

101+
library testlib
102+
exposed-modules:
103+
Test.Cardano.Crypto.CBOR
104+
Test.Cardano.Crypto.Dummy
105+
Test.Cardano.Crypto.Example
106+
Test.Cardano.Crypto.Gen
107+
Test.Cardano.Crypto.Json
108+
Test.Cardano.Crypto.Orphans
109+
110+
visibility: public
111+
hs-source-dirs: testlib
112+
other-modules:
113+
Paths_cardano_crypto_wrapper
114+
115+
default-language: Haskell2010
116+
default-extensions: NoImplicitPrelude
117+
ghc-options:
118+
-Weverything
119+
-Wno-all-missed-specialisations
120+
-Wno-missing-deriving-strategies
121+
-Wno-missing-import-lists
122+
-Wno-missing-safe-haskell-mode
123+
-Wno-prepositive-qualified-module
124+
-Wno-safe
125+
-Wno-unsafe
126+
-Wunused-packages
127+
128+
build-depends:
129+
base,
130+
bytestring,
131+
cardano-crypto,
132+
cardano-crypto-wrapper,
133+
cardano-ledger-binary:{cardano-ledger-binary, testlib},
134+
cardano-prelude,
135+
cardano-prelude-test,
136+
crypton,
137+
hedgehog >=1.0.4,
138+
memory,
139+
101140
test-suite test
102141
type: exitcode-stdio-1.0
103142
main-is: test.hs
104143
hs-source-dirs: test
105144
other-modules:
106-
GetDataFileName
107145
Paths_cardano_crypto_wrapper
108-
Test.Cardano.Crypto.CBOR
109-
Test.Cardano.Crypto.Dummy
110-
Test.Cardano.Crypto.Example
111-
Test.Cardano.Crypto.Gen
112146
Test.Cardano.Crypto.Hashing
113-
Test.Cardano.Crypto.Json
114147
Test.Cardano.Crypto.Keys
115148
Test.Cardano.Crypto.Limits
116-
Test.Cardano.Crypto.Orphans
117149
Test.Cardano.Crypto.Random
118150
Test.Cardano.Crypto.Signing.Redeem
119151
Test.Cardano.Crypto.Signing.Redeem.Compact
@@ -140,11 +172,10 @@ test-suite test
140172
bytestring,
141173
cardano-crypto,
142174
cardano-crypto-wrapper,
143-
cardano-ledger-binary:{cardano-ledger-binary, testlib},
175+
cardano-ledger-binary,
144176
cardano-prelude,
145177
cardano-prelude-test,
146178
crypton,
147-
filepath,
148179
formatting,
149180
hedgehog >=1.0.4,
150-
memory,
181+
testlib,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)