spec tests: filter out non-applicable test files
This commit is contained in:
parent
60dcf09c1a
commit
6c630798f8
1 changed files with 5 additions and 1 deletions
|
@ -5,6 +5,10 @@
|
||||||
TEST=$(shell find . -name '*.test' | sort)
|
TEST=$(shell find . -name '*.test' | sort)
|
||||||
TEST_RS=${TEST:.test=.rs}
|
TEST_RS=${TEST:.test=.rs}
|
||||||
|
|
||||||
|
BLACKLIST += filters # lua filters not implemented
|
||||||
|
BLACKLIST += symb # uses ast
|
||||||
|
BLACKLIST += sourcepos # not parsable
|
||||||
|
|
||||||
.PHONY: suite
|
.PHONY: suite
|
||||||
suite: mod.rs
|
suite: mod.rs
|
||||||
|
|
||||||
|
@ -12,7 +16,7 @@ mod.rs: ${TEST_RS}
|
||||||
printf "" > $@
|
printf "" > $@
|
||||||
for f in ${TEST}; do \
|
for f in ${TEST}; do \
|
||||||
name=$$(basename -s .test $$f); \
|
name=$$(basename -s .test $$f); \
|
||||||
echo "mod $$name;" >> $@; \
|
echo ${BLACKLIST} | tr ' ' '\n' | grep -q $$name || echo "mod $$name;" >> $@; \
|
||||||
done
|
done
|
||||||
|
|
||||||
.test.rs:
|
.test.rs:
|
||||||
|
|
Loading…
Reference in a new issue