Mercurial > vim
comparison src/testdir/Makefile @ 30419:f652823ce8bb v9.0.0545
patch 9.0.0545: when a test is slow and CI times out there is no time info
Commit: https://github.com/vim/vim/commit/daaa3d9965d74faf1f75aea218822bfb7ba687a7
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 22 15:13:00 2022 +0100
patch 9.0.0545: when a test is slow and CI times out there is no time info
Problem: When a test is slow and CI times out there is no time info.
Solution: Add the elapsed time to the "Executing" message.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 22 Sep 2022 16:15:03 +0200 |
parents | d8a962d7b008 |
children | 55aa44dd59ef |
comparison
equal
deleted
inserted
replaced
30418:d8065e2a62d7 | 30419:f652823ce8bb |
---|---|
10 SCRIPTSOURCE = ../../runtime | 10 SCRIPTSOURCE = ../../runtime |
11 | 11 |
12 # Comment out this line to see the verbose output of tests. | 12 # Comment out this line to see the verbose output of tests. |
13 # | 13 # |
14 # Catches SwapExists to avoid hanging at the ATTENTION prompt. | 14 # Catches SwapExists to avoid hanging at the ATTENTION prompt. |
15 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()}' | 15 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()}' |
16 | 16 |
17 # Uncomment this line to use valgrind for memory leaks and extra warnings. | 17 # Uncomment this line to use valgrind for memory leaks and extra warnings. |
18 # The output goes into a file "valgrind.testN" | 18 # The output goes into a file "valgrind.testN" |
19 # Vim should be compiled with EXITFREE to avoid false warnings. | 19 # Vim should be compiled with EXITFREE to avoid false warnings. |
20 # This will make testing about 10 times as slow. | 20 # This will make testing about 10 times as slow. |
21 # VALGRIND = valgrind --tool=memcheck --leak-check=yes --num-callers=35 --log-file=valgrind.$* | 21 # VALGRIND = valgrind --tool=memcheck --leak-check=yes --num-callers=35 --log-file=valgrind.$* |
22 | |
23 # To execute one test, e.g. in gdb, use something like this: | |
24 # run -f -u unix.vim --gui-dialog-file guidialog -U NONE --noplugin --not-a-term -S runtest.vim test_name.vim | |
22 | 25 |
23 default: nongui | 26 default: nongui |
24 | 27 |
25 # The list of tests is common to all systems. | 28 # The list of tests is common to all systems. |
26 # This defines SCRIPTS_TINY_OUT, NEW_TESTS and NEW_TESTS_RES. | 29 # This defines SCRIPTS_TINY_OUT, NEW_TESTS and NEW_TESTS_RES. |