3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2026-05-03 02:55:16 +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

View file

@ -1,11 +1,17 @@
SBY_FILES=$(wildcard *.sby)
SBY_TESTS=$(addprefix test_,$(SBY_FILES:.sby=))
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
.PHONY: test validate_junit
FORCE:
test: $(SBY_TESTS)
test: $(JUNIT_TESTS)
test_%: %.sby FORCE
python3 ../sbysrc/sby.py -f $<
$(JUNIT_TESTS): $(SBY_TESTS)
python validate_junit.py $@/$@.xml