bench/suite_bench: use snake case for input files

rust identifiers may not contain -

use _ for files also to avoid confusion of having two names
This commit is contained in:
Noah Hellman 2023-04-10 11:29:40 +02:00
parent 9bdb4c59fc
commit bee3d5d747
4 changed files with 6 additions and 5 deletions

View file

@ -38,7 +38,8 @@ suite:
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; \
dst=$$(echo $$f | sed 's/-/_/g'); \
ln -fs ../../modules/djot.js/bench/$$f tests/bench/$$dst; \
done
(cd tests/bench && make)
cargo test --features suite_bench bench::
@ -47,7 +48,8 @@ suite_bench:
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 bench/$$f; \
dst=$$(echo $$f | sed 's/-/_/g'); \
ln -fs ../modules/djot.js/bench/$$f bench/$$dst; \
done
cov: suite suite_bench