-
Notifications
You must be signed in to change notification settings - Fork 0
Implement ConformanceTest type #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement ConformanceTest type #24
Conversation
da24908 to
543fcb8
Compare
ba399d8 to
f1c5216
Compare
isovector
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm; though can we rebase it onto conformance-testing?
f1c5216 to
909a150
Compare
ouroboros-consensus-diffusion/test/consensus-test/Test/Consensus/Genesis/Setup.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-diffusion/test/consensus-test/Test/Consensus/Genesis/Setup.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-diffusion/test/consensus-test/Test/Consensus/Genesis/Setup.hs
Outdated
Show resolved
Hide resolved
909a150 to
eea5179
Compare
fbc82c7 to
7a370a1
Compare
nbloomf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
| -- ^ A shrinker allowed to inspect the output value of a test. | ||
| , ctProperty :: GenesisTestFull blk -> StateView blk -> Property | ||
| -- ^ The property to test. | ||
| --, ctDesiredPasses :: Int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming we will use this later!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. This is specified in our design document. Just left it out until when we port the existing tests to the new type and avoid this change to propagate outside this module (or having to hardcode a dummy value).
| forAllGenesisTest generator schedulerConfig shrinker mkProperty = | ||
| forAllGenRunShrinkCheck generator runner shrinker' $ \genesisTest result -> | ||
| runConformanceTest :: forall blk. | ||
| ( blk ~ TestBlock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this class constraint be relaxed yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thing is I rebased to conformance-tesing, where the needed parametrization is not in place yet. Good thing I implemented over those changes, so I have a quick fix to get rid of this constraint as soon as #21 lands.
7a370a1 to
ee64b42
Compare
ee64b42 to
5f3cb27
Compare
Description
This PR implementes a
ConformanceTesttype to reify the genesis tests. The introduced change accounts to a local refactor.Closes tweag/cardano-conformance-testing-of-consensus#72