Skip to content

Commit a6f4498

Browse files
authored
Update ReadMe.md for trace verifiier
1 parent 3044f55 commit a6f4498

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

leios-trace-verifier/ReadMe.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,60 @@ nix run .#leios-trace-verifier -- \
4646
```
4747

4848
The output lists the number of successful trace entries checked, or `0` if the checking failed.
49+
50+
51+
### Test cases for trace verify and conformance tests
52+
53+
The test suite for the trace verify contains property-based tests that check whether the conformance testing matches expectations. The suite has both manually curated golden tests and automatically generated property-based tests. Both positive and negative cases are tested.
54+
55+
```console
56+
$ nix run .#test-trace-verifier
57+
58+
Generated trace
59+
Positive cases
60+
Genesis slot [✔]
61+
+++ OK, passed 1 test.
62+
Generate RB [✔]
63+
+++ OK, passed 1 test.
64+
Generate IB [✔]
65+
+++ OK, passed 1 test.
66+
Generate no IB [✔]
67+
+++ OK, passed 1 test.
68+
Generate EB [✔]
69+
+++ OK, passed 1 test.
70+
Generate no EB [✔]
71+
+++ OK, passed 1 test.
72+
Generate VT [✔]
73+
+++ OK, passed 1 test.
74+
Generate no VT [✔]
75+
+++ OK, passed 1 test.
76+
Skip block production [✔]
77+
+++ OK, passed 100 tests.
78+
Sporadic block production [✔]
79+
+++ OK, passed 100 tests.
80+
Noisy block production [✔]
81+
+++ OK, passed 100 tests.
82+
Negative cases
83+
No actions [✔]
84+
+++ OK, passed 1 test.
85+
Start after genesis [✔]
86+
+++ OK, passed 1 test.
87+
Generate equivocated IBs [✔]
88+
+++ OK, passed 1 test.
89+
Generate equivocated EBs [✔]
90+
+++ OK, passed 1 test.
91+
Generate equivocated VTs [✔]
92+
+++ OK, passed 1 test.
93+
Sporadic gaps in production [✔]
94+
+++ OK, passed 100 tests.
95+
Golden traces
96+
Verify valid traces
97+
agda-1.jsonl [✔]
98+
agda-2.jsonl [✔]
99+
Reject invalid traces
100+
case-1.jsonl [✔]
101+
102+
Finished in 0.3541 seconds
103+
20 examples, 0 failures
104+
Test suite test-trace-verifier: PASS
105+
```

0 commit comments

Comments
 (0)