]> git.lizzy.rs Git - rust.git/commitdiff
make: turn off --bench when running under valgrind
authorGraydon Hoare <graydon@mozilla.com>
Wed, 17 Jul 2013 18:52:21 +0000 (11:52 -0700)
committerGraydon Hoare <graydon@mozilla.com>
Wed, 17 Jul 2013 18:52:21 +0000 (11:52 -0700)
mk/tests.mk

index 625e2ea14619ec319678cc3f2b6ae1ed35a11a4a..770e72804913a33f59beb5c74f2f1d5e9b8fc361 100644 (file)
@@ -34,9 +34,12 @@ ifdef CHECK_XFAILS
   TESTARGS += --ignored
 endif
 
+CTEST_BENCH = --bench
+
 # Arguments to the cfail/rfail/rpass/bench tests
 ifdef CFG_VALGRIND
   CTEST_RUNTOOL = --runtool "$(CFG_VALGRIND)"
+  CTEST_BENCH =
 endif
 
 # Arguments to the perf tests
@@ -66,12 +69,12 @@ TEST_RATCHET_NOISE_PERCENT=10.0
 # Whether to ratchet or merely save benchmarks
 ifdef CFG_RATCHET_BENCH
 CRATE_TEST_BENCH_ARGS=\
-  --test --bench \
+  --test $(CTEST_BENCH) \
   --ratchet-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4)) \
   --ratchet-noise-percent $(TEST_RATCHET_NOISE_PERCENT)
 else
 CRATE_TEST_BENCH_ARGS=\
-  --test --bench \
+  --test $(CTEST_BENCH) \
   --save-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4))
 endif