2022-11-12 12:46:13 -05:00
|
|
|
.POSIX:
|
|
|
|
|
|
|
|
.SUFFIXES: .test .rs
|
|
|
|
|
|
|
|
TEST=$(shell find . -name '*.test' | sort)
|
|
|
|
TEST_RS=${TEST:.test=.rs}
|
|
|
|
|
2023-01-29 12:21:44 -05:00
|
|
|
BLACKLIST += filters # lua filters not implemented
|
|
|
|
BLACKLIST += symb # uses ast
|
|
|
|
BLACKLIST += sourcepos # not parsable
|
|
|
|
|
2022-11-12 12:46:13 -05:00
|
|
|
.PHONY: suite
|
|
|
|
suite: mod.rs
|
|
|
|
|
|
|
|
mod.rs: ${TEST_RS}
|
|
|
|
printf "" > $@
|
|
|
|
for f in ${TEST}; do \
|
|
|
|
name=$$(basename -s .test $$f); \
|
2023-01-29 12:21:44 -05:00
|
|
|
echo ${BLACKLIST} | tr ' ' '\n' | grep -q $$name || echo "mod $$name;" >> $@; \
|
2022-11-12 12:46:13 -05:00
|
|
|
done
|
|
|
|
|
|
|
|
.test.rs:
|
2023-04-08 13:25:54 -04:00
|
|
|
gawk -fgen.awk $< > $@
|
2022-11-12 12:46:13 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.rs
|