add spec tests

This commit is contained in:
Noah Hellman 2022-11-12 18:46:13 +01:00
parent 40a612df95
commit 8c0abca85f
7 changed files with 143 additions and 0 deletions

16
Makefile Normal file
View file

@ -0,0 +1,16 @@
.POSIX:
.PHONY: suite
suite:
git submodule update --init modules/djot
for f in $$(find modules/djot/test -name '*.test' | xargs basename -a); do \
ln -fs ../../modules/djot/test/$$f tests/suite/$$f; \
done
(cd tests/suite && make)
cargo test --features suite
clean:
cargo clean
git submodule deinit -f --all
rm -f tests/suite/*.test
(cd tests/suite && make clean)