summaryrefslogtreecommitdiffstats
path: root/src/testdir/Makefile
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-22 15:13:00 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-22 15:13:00 +0100
commitdaaa3d9965d74faf1f75aea218822bfb7ba687a7 (patch)
tree991522294b86225544fc746e98756489ea2ec14f /src/testdir/Makefile
parentfcba86c0316dc0d6341078b50e7967206a1627a0 (diff)
patch 9.0.0545: when a test is slow and CI times out there is no time infov9.0.0545
Problem: When a test is slow and CI times out there is no time info. Solution: Add the elapsed time to the "Executing" message.
Diffstat (limited to 'src/testdir/Makefile')
-rw-r--r--src/testdir/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/testdir/Makefile b/src/testdir/Makefile
index adec1f167e..54a998961f 100644
--- a/src/testdir/Makefile
+++ b/src/testdir/Makefile
@@ -12,7 +12,7 @@ SCRIPTSOURCE = ../../runtime
# Comment out this line to see the verbose output of tests.
#
# Catches SwapExists to avoid hanging at the ATTENTION prompt.
-REDIR_TEST_TO_NULL = --cmd 'au SwapExists * let v:swapchoice = "e"' | LC_ALL=C LANG=C LANGUAGE=C awk '/Executing Test_/{match($$0, "Executing Test_[^\\)]*\\)"); print substr($$0, RSTART, RLENGTH) "\r"; fflush()}'
+REDIR_TEST_TO_NULL = --cmd 'au SwapExists * let v:swapchoice = "e"' | LC_ALL=C LANG=C LANGUAGE=C awk '/Executing Test_/{match($$0, "(took .*; now )?Executing Test_[^\\)]*\\)"); print substr($$0, RSTART, RLENGTH) "\r"; fflush()}'
# Uncomment this line to use valgrind for memory leaks and extra warnings.
# The output goes into a file "valgrind.testN"
@@ -20,6 +20,9 @@ REDIR_TEST_TO_NULL = --cmd 'au SwapExists * let v:swapchoice = "e"' | LC_ALL=C L
# This will make testing about 10 times as slow.
# VALGRIND = valgrind --tool=memcheck --leak-check=yes --num-callers=35 --log-file=valgrind.$*
+# To execute one test, e.g. in gdb, use something like this:
+# run -f -u unix.vim --gui-dialog-file guidialog -U NONE --noplugin --not-a-term -S runtest.vim test_name.vim
+
default: nongui
# The list of tests is common to all systems.