3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-09-01 17:20:41 +00:00

note unexpected return statuses in junit

This commit is contained in:
N. Engelhardt 2022-03-29 19:10:29 +02:00
parent adacad7908
commit 008d020c4d
7 changed files with 44 additions and 3 deletions

1
tests/scripted/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/junit_*/

11
tests/scripted/Makefile Normal file
View file

@ -0,0 +1,11 @@
SH_FILES=$(wildcard *.sh)
SH_TESTS=$(addprefix test_,$(SH_FILES:.sh=))
test: $(SH_TESTS)
test_%: %.sh FORCE
bash $<
FORCE:
.PHONY: test FORCE

View file

@ -0,0 +1,16 @@
[options]
mode bmc
depth 1
expect fail,timeout
[engines]
smtbmc
[script]
read -formal foo.v
prep -top foo
[file foo.v]
module foo;
always_comb assert(1);
endmodule

View file

@ -0,0 +1,5 @@
#!/bin/bash
# this is expected to return 1 so don't use 'set -e'
python3 ../../sbysrc/sby.py -f junit_expect.sby
grep '<failure type="EXPECT" message="Task returned status PASS. Expected values were: FAIL TIMEOUT" />' junit_expect/junit_expect.xml