Skip to content

Commit 38d62fe

Browse files
committed
auto merge of #8111 : brson/rust/no-bench, r=graydon
2 parents 5633a53 + ceba95c commit 38d62fe

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

mk/tests.mk

+8-4
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,16 @@ ifdef CHECK_XFAILS
3434
TESTARGS += --ignored
3535
endif
3636

37-
CTEST_BENCH = --bench
37+
TEST_BENCH = --bench
3838

3939
# Arguments to the cfail/rfail/rpass/bench tests
4040
ifdef CFG_VALGRIND
4141
CTEST_RUNTOOL = --runtool "$(CFG_VALGRIND)"
42-
CTEST_BENCH =
42+
TEST_BENCH =
43+
endif
44+
45+
ifdef NO_BENCH
46+
TEST_BENCH =
4347
endif
4448

4549
# Arguments to the perf tests
@@ -69,12 +73,12 @@ TEST_RATCHET_NOISE_PERCENT=10.0
6973
# Whether to ratchet or merely save benchmarks
7074
ifdef CFG_RATCHET_BENCH
7175
CRATE_TEST_BENCH_ARGS=\
72-
--test $(CTEST_BENCH) \
76+
--test $(TEST_BENCH) \
7377
--ratchet-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4)) \
7478
--ratchet-noise-percent $(TEST_RATCHET_NOISE_PERCENT)
7579
else
7680
CRATE_TEST_BENCH_ARGS=\
77-
--test $(CTEST_BENCH) \
81+
--test $(TEST_BENCH) \
7882
--save-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4))
7983
endif
8084

0 commit comments

Comments
 (0)