diff --git a/mk/tests.mk b/mk/tests.mk index d8d77db1e02..c5bb6ef81f6 100644 --- a/mk/tests.mk +++ b/mk/tests.mk @@ -38,16 +38,11 @@ ifdef CHECK_IGNORED TESTARGS += --ignored endif - # Arguments to the cfail/rfail/rpass/bench tests ifdef CFG_VALGRIND CTEST_RUNTOOL = --runtool "$(CFG_VALGRIND)" endif -ifdef PLEASE_BENCH - TESTARGS += --bench -endif - # Arguments to the perf tests ifdef CFG_PERF_TOOL CTEST_PERF_RUNTOOL = --runtool "$(CFG_PERF_TOOL)" @@ -55,6 +50,11 @@ endif CTEST_TESTARGS := $(TESTARGS) +# --bench is only relevant for crate tests, not for the compile tests +ifdef PLEASE_BENCH + TESTARGS += --bench +endif + ifdef VERBOSE CTEST_TESTARGS += --verbose endif