diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2018-01-30 21:21:23 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-01-30 14:04:01 -0800 |
commit | 5b1fe6ebb7ed494391a582c3fda37813fdbf28c4 (patch) | |
tree | a6208ae9dce7a593dc35b142c49aa49015f74232 /t/test-lib.sh | |
parent | wildmatch test: create & test files on disk in addition to in-memory (diff) | |
download | tgif-5b1fe6ebb7ed494391a582c3fda37813fdbf28c4.tar.xz |
test-lib: add an EXPENSIVE_ON_WINDOWS prerequisite
Add an EXPENSIVE_ON_WINDOWS prerequisite to mark those tests which are
very expensive to run on Windows, but cheap elsewhere.
Certain tests that heavily stress the filesystem or run a lot of shell
commands are disproportionately expensive on Windows, this
prerequisite will later be used by a tests that runs in 4-8 seconds on
a modern Linux system, but takes almost 10 minutes on Windows.
There's no reason to skip such tests by default on other platforms,
but Windows users shouldn't need to wait around while they finish.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 9b61f16f7a..b87a09fec7 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -1109,6 +1109,10 @@ test_lazy_prereq EXPENSIVE ' test -n "$GIT_TEST_LONG" ' +test_lazy_prereq EXPENSIVE_ON_WINDOWS ' + test_have_prereq EXPENSIVE || test_have_prereq !MINGW,!CYGWIN +' + test_lazy_prereq USR_BIN_TIME ' test -x /usr/bin/time ' |