3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2026-04-30 01:43:39 +00:00

validate junit files (with extra attributes added to schema)

This commit is contained in:
N. Engelhardt 2022-02-22 16:16:37 +01:00
parent 7ee357fcc8
commit 89ed843ff1
7 changed files with 157 additions and 4 deletions

38
tests/junit_assert.sby Normal file
View file

@ -0,0 +1,38 @@
[tasks]
pass
fail
preunsat
[options]
mode bmc
depth 1
pass: expect pass
fail: expect fail
preunsat: expect error
[engines]
smtbmc boolector
[script]
fail: read -define FAIL
preunsat: read -define PREUNSAT
read -sv test.sv
prep -top top
[file test.sv]
module test(input foo);
always @* assert(foo);
`ifdef FAIL
always @* assert(!foo);
`endif
`ifdef PREUNSAT
always @* assume(!foo);
`endif
endmodule
module top();
test test_i (
.foo(1'b1)
);
endmodule