spec tests: filter out non-applicable test files

This commit is contained in:
Noah Hellman 2023-01-29 18:21:44 +01:00
parent 60dcf09c1a
commit 6c630798f8

View file

@ -5,6 +5,10 @@
TEST=$(shell find . -name '*.test' | sort)
TEST_RS=${TEST:.test=.rs}
BLACKLIST += filters # lua filters not implemented
BLACKLIST += symb # uses ast
BLACKLIST += sourcepos # not parsable
.PHONY: suite
suite: mod.rs
@ -12,7 +16,7 @@ mod.rs: ${TEST_RS}
printf "" > $@
for f in ${TEST}; do \
name=$$(basename -s .test $$f); \
echo "mod $$name;" >> $@; \
echo ${BLACKLIST} | tr ' ' '\n' | grep -q $$name || echo "mod $$name;" >> $@; \
done
.test.rs: