mirror of
https://github.com/YosysHQ/sby.git
synced 2026-05-01 18:23:45 +00:00
Tests for --keep-going
This also changes the test Makefile to run `.check.py` files after running the corresponding `.sby` file to allow more precise testing of the keep going feature.
This commit is contained in:
parent
7824460e27
commit
2d3d96478a
11 changed files with 182 additions and 1 deletions
|
|
@ -1,16 +1,21 @@
|
|||
SBY_FILES=$(wildcard *.sby)
|
||||
SBY_TESTS=$(addprefix test_,$(SBY_FILES:.sby=))
|
||||
CHECK_PY_FILES=$(wildcard *.check.py)
|
||||
CHECK_PY_TASKS=$(addprefix check_,$(CHECK_PY_FILES:.check.py=))
|
||||
JUNIT_TESTS=junit_assert_pass junit_assert_fail junit_assert_preunsat \
|
||||
junit_cover_pass junit_cover_uncovered junit_cover_assert junit_cover_preunsat \
|
||||
junit_timeout_error_timeout junit_timeout_error_syntax junit_timeout_error_solver
|
||||
|
||||
.PHONY: test validate_junit
|
||||
|
||||
test: $(JUNIT_TESTS)
|
||||
test: $(JUNIT_TESTS) $(CHECK_PY_TASKS)
|
||||
|
||||
test_%: %.sby FORCE
|
||||
python3 ../sbysrc/sby.py -f $<
|
||||
|
||||
$(CHECK_PY_TASKS): check_%: %.check.py test_%
|
||||
python3 $<
|
||||
|
||||
$(JUNIT_TESTS): $(SBY_TESTS)
|
||||
python3 validate_junit.py $@/$@.xml
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue