coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests: run expensive tests if RUN_VERY_EXPENSIVE_TESTS is 'yes'


From: Bernhard Voelker
Subject: [PATCH] tests: run expensive tests if RUN_VERY_EXPENSIVE_TESTS is 'yes'
Date: Thu, 08 Mar 2012 10:20:47 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120215 Thunderbird/10.0.2

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 <address@hidden>
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]