Mercurial > vim
diff src/testdir/Makefile @ 16951:ebdf6cd89910 v8.1.1476
patch 8.1.1476: no statistics displayed after running tests
commit https://github.com/vim/vim/commit/9c0cec65f891492314caadeef87a50251a21e630
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 6 13:38:15 2019 +0200
patch 8.1.1476: no statistics displayed after running tests
Problem: No statistics displayed after running tests.
Solution: Summarize the test results. (Christian Brabandt, closes https://github.com/vim/vim/issues/4391)
Also make it possible to report a skipped file.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 06 Jun 2019 13:45:05 +0200 |
parents | 0d6331501d19 |
children | 54c2fe0eff03 |
line wrap: on
line diff
--- 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"' > /dev/null +# REDIR_TEST_TO_NULL = --cmd 'au SwapExists * let v:swapchoice = "e"' > /dev/null # Uncomment this line to use valgrind for memory leaks and extra warnings. # The output goes into a file "valgrind.testN" @@ -49,10 +49,12 @@ gui: nolog $(SCRIPTS_FIRST) $(SCRIPTS) $ benchmark: $(SCRIPTS_BENCH) report: + $(RUN_VIMTEST) $(NO_INITS) -S summarize.vim messages $(REDIR_TEST_TO_NULL) @echo @echo 'Test results:' + @cat test_result.log @/bin/sh -c "if test -f test.log; \ - then cat test.log; echo TEST FAILURE; exit 1; \ + then echo TEST FAILURE; exit 1; \ else echo ALL DONE; \ fi" @@ -77,7 +79,10 @@ RM_ON_START = tiny.vim small.vim mbyte.v RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim $(NO_INITS) -s dotest.in clean: - -rm -rf *.out *.failed *.res *.rej *.orig opt_test.vim test.log messages $(RM_ON_RUN) $(RM_ON_START) valgrind.* + -rm -rf *.out *.failed *.res *.rej *.orig + -rm opt_test.vim test.log test_result.log messages + -rm $(RM_ON_RUN) $(RM_ON_START) + -rm valgrind.* test1.out: test1.in -rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START) wrongtermsize