mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.1.0424: test output is very verbose, loading CI log is slow
Problem: Test output is very verbose, loading CI log is slow. Solution: Redirect output to /dev/null. (Ken Takata, closes #3456)
This commit is contained in:
parent
0bd4051732
commit
e76d7a63df
@ -9,6 +9,9 @@ XXDPROG = ../xxd/xxd
|
|||||||
|
|
||||||
SCRIPTSOURCE = ../../runtime
|
SCRIPTSOURCE = ../../runtime
|
||||||
|
|
||||||
|
# Change this to empty to see the verbose output of tests.
|
||||||
|
REDIR_TEST_TO_NULL = > /dev/null
|
||||||
|
|
||||||
# Uncomment this line to use valgrind for memory leaks and extra warnings.
|
# Uncomment this line to use valgrind for memory leaks and extra warnings.
|
||||||
# The output goes into a file "valgrind.testN"
|
# The output goes into a file "valgrind.testN"
|
||||||
# Vim should be compiled with EXITFREE to avoid false warnings.
|
# Vim should be compiled with EXITFREE to avoid false warnings.
|
||||||
@ -59,7 +62,7 @@ clean:
|
|||||||
|
|
||||||
test1.out: test1.in
|
test1.out: test1.in
|
||||||
-rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START) wrongtermsize
|
-rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START) wrongtermsize
|
||||||
$(RUN_VIM) $*.in
|
$(RUN_VIM) $*.in $(REDIR_TEST_TO_NULL)
|
||||||
@/bin/sh -c "if test -f wrongtermsize; \
|
@/bin/sh -c "if test -f wrongtermsize; \
|
||||||
then echo; \
|
then echo; \
|
||||||
echo test1 FAILED - terminal size must be 80x24 or larger; \
|
echo test1 FAILED - terminal size must be 80x24 or larger; \
|
||||||
@ -78,7 +81,7 @@ test1.out: test1.in
|
|||||||
# 200 msec is sufficient, but only modern sleep supports a fraction of
|
# 200 msec is sufficient, but only modern sleep supports a fraction of
|
||||||
# a second, fall back to a second if it fails.
|
# a second, fall back to a second if it fails.
|
||||||
@-/bin/sh -c "sleep .2 > /dev/null 2>&1 || sleep 1"
|
@-/bin/sh -c "sleep .2 > /dev/null 2>&1 || sleep 1"
|
||||||
$(RUN_VIM) $*.in
|
$(RUN_VIM) $*.in $(REDIR_TEST_TO_NULL)
|
||||||
|
|
||||||
# For flaky tests retry one time. No tests at the moment.
|
# For flaky tests retry one time. No tests at the moment.
|
||||||
#@/bin/sh -c "if test -f test.out -a $* = test61; then \
|
#@/bin/sh -c "if test -f test.out -a $* = test61; then \
|
||||||
@ -108,7 +111,7 @@ bench_re_freeze.out: bench_re_freeze.vim
|
|||||||
# 200 msec is sufficient, but only modern sleep supports a fraction of
|
# 200 msec is sufficient, but only modern sleep supports a fraction of
|
||||||
# a second, fall back to a second if it fails.
|
# a second, fall back to a second if it fails.
|
||||||
@-/bin/sh -c "sleep .2 > /dev/null 2>&1 || sleep 1"
|
@-/bin/sh -c "sleep .2 > /dev/null 2>&1 || sleep 1"
|
||||||
$(RUN_VIM) $*.in
|
$(RUN_VIM) $*.in $(REDIR_TEST_TO_NULL)
|
||||||
@/bin/sh -c "if test -f benchmark.out; then cat benchmark.out; fi"
|
@/bin/sh -c "if test -f benchmark.out; then cat benchmark.out; fi"
|
||||||
|
|
||||||
nolog:
|
nolog:
|
||||||
@ -129,7 +132,7 @@ newtestssilent: $(NEW_TESTS)
|
|||||||
.vim.res: writevimcmd
|
.vim.res: writevimcmd
|
||||||
@echo "$(VIMPROG)" > vimcmd
|
@echo "$(VIMPROG)" > vimcmd
|
||||||
@echo "$(RUN_VIMTEST)" >> vimcmd
|
@echo "$(RUN_VIMTEST)" >> vimcmd
|
||||||
$(RUN_VIMTEST) $(NO_INITS) -S runtest.vim $*.vim
|
$(RUN_VIMTEST) $(NO_INITS) -S runtest.vim $*.vim $(REDIR_TEST_TO_NULL)
|
||||||
@rm vimcmd
|
@rm vimcmd
|
||||||
|
|
||||||
test_gui.res: test_gui.vim
|
test_gui.res: test_gui.vim
|
||||||
|
@ -794,6 +794,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
424,
|
||||||
/**/
|
/**/
|
||||||
423,
|
423,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user