From a3351d28b7eb0fea4900cfa8d993f9e4b55919d6 Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Sun, 12 Feb 2023 13:00:29 +0100 Subject: [PATCH] use bench instead of benches dir for benchmarks in order to be able to place benchmarks in separate crates, if placed in benches, they will be automatically considered part of the main crate separate crates are needed to - share generated input crate, - avoid adding unused dependencies to tests --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0054e16..9a9c45f 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ 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 benches/$$f; \ + ln -fs ../modules/djot.js/bench/$$f bench/$$f; \ done cov: suite suite_bench @@ -96,6 +96,6 @@ clean: (cd tests/suite && make clean) rm -f tests/bench/*.dj (cd tests/bench && make clean) - rm -f benches/*.dj + rm -f bench/*.dj rm -rf tests/afl/out (cd examples/jotdown_wasm && make clean)