diff options
author | Jim Meyering <meyering@redhat.com> | 2008-04-24 12:50:24 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-04-27 21:31:32 +0200 |
commit | 427f179542e9f7228f77affdd5a4c50a573b4894 (patch) | |
tree | be86b7543a8777f22288e576b032d6ef4a3931bc /tests/test-lib.sh | |
parent | 8dc387dba567da10e2e90107fd044baaef580145 (diff) | |
download | coreutils-427f179542e9f7228f77affdd5a4c50a573b4894.tar.xz |
tests: move another file (expensive) into test-lib.sh
* tests/expensive: Remove file. Move contents into ...
* tests/test-lib.sh (expensive_): ...here. New function.
* tests/du/fd-leak: Update caller to use the new function.
* tests/mv/leak-fd: Likewise.
* tests/rm/hash: Likewise.
* tests/tail-2/big-4gb: Likewise.
* tests/Makefile.am (EXTRA_DIST): Remove its name.
Diffstat (limited to 'tests/test-lib.sh')
-rw-r--r-- | tests/test-lib.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test-lib.sh b/tests/test-lib.sh index 8f56ab105..78ac97dd2 100644 --- a/tests/test-lib.sh +++ b/tests/test-lib.sh @@ -151,6 +151,19 @@ environment variable set to yes. E.g., fi } +expensive_() +{ + if test "$RUN_EXPENSIVE_TESTS" != yes; then + skip_test_ ' +This test is relatively expensive, so it is disabled by default. +To run it anyway, rerun make check with the RUN_EXPENSIVE_TESTS +environment variable set to yes. E.g., + + env RUN_EXPENSIVE_TESTS=yes make check +' + fi +} + require_root_() { uid_is_privileged_ || skip_test_ "must be run as root" |