test suite: add djot.js bench files as tests

This commit is contained in:
Noah Hellman 2023-01-30 16:58:46 +01:00
parent 9ab8be5d30
commit 08332bed5e
4 changed files with 54 additions and 1 deletions

View file

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