This patch helps in cases where a single, expensive test is run, but only the RUN_VERY_EXPENSIVE_TESTS variable is there - the test would be skipped. E.g.
~/git/coreutils/tests> make check RUN_VERY_EXPENSIVE_TESTS=yes TESTS=du/fd-leak ... fd-leak: skipped test: expensive: disabled by default SKIP: du/fd-leak ... Have a ncie day, Berny >From 7704df06fee1f64487d253dd7d2635dc65dccb1a Mon Sep 17 00:00:00 2001 From: Bernhard Voelker <[email protected]> Date: Thu, 8 Mar 2012 10:13:05 +0100 Subject: [PATCH] tests: run expensive tests if RUN_VERY_EXPENSIVE_TESTS is 'yes' This change aligns the behaviour with the make target 'check-very-expensive' which also includes expensive tests. * tests/init.cfg (expensive_): Add check for RUN_VERY_EXPENSIVE_TESTS. Skip this test only if neither RUN_EXPENSIVE_TESTS nor RUN_VERY_EXPENSIVE_TESTS does not equal 'yes'. --- tests/init.cfg | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tests/init.cfg b/tests/init.cfg index fda82bc..5f794dd 100644 --- a/tests/init.cfg +++ b/tests/init.cfg @@ -286,7 +286,8 @@ or use the shortcut target of the toplevel Makefile, expensive_() { - if test "$RUN_EXPENSIVE_TESTS" != yes; then + if test "$RUN_EXPENSIVE_TESTS" != yes \ + && test "$RUN_VERY_EXPENSIVE_TESTS" != yes; then skip_ 'expensive: disabled by default This test is relatively expensive, so it is disabled by default. To run it anyway, rerun make check with the RUN_EXPENSIVE_TESTS -- 1.7.7
