mv suite{_bench} to test-html-{ut,ref} crates

- allow compiling/running html tests without compiling main crate tests
  (useful when e.g. making type changes to events but html unaffected)
- avoid need for future flags in main crate
This commit is contained in:
Noah Hellman 2023-04-28 20:58:08 +02:00
parent d2a46663f1
commit 3cea79a122
18 changed files with 182 additions and 55 deletions

View file

@ -1,26 +0,0 @@
.POSIX:
.SUFFIXES: .test .rs
TEST=$(shell find . -name '*.test' | sort)
TEST_RS=${TEST:.test=.rs}
BLACKLIST += djot_js_filters # lua filters not implemented
BLACKLIST += djot_js_symb # uses ast
BLACKLIST += djot_js_sourcepos # not parsable
.PHONY: suite
suite: mod.rs
mod.rs: ${TEST_RS}
printf "" > $@
for f in ${TEST}; do \
name=$$(basename -s .test $$f); \
echo ${BLACKLIST} | tr ' ' '\n' | grep -q $$name || echo "mod $$name;" >> $@; \
done
.test.rs:
gawk -fgen.awk $< > $@
clean:
rm -f *.rs