summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-06 21:23:56 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-06 21:23:56 +0100
commite7893a4088d6ea796bcab6195d232cb26c12c317 (patch)
treec9ab84fbe167acee65f79b4d172aa2e26223ef2f /src/testdir
parent2795e21eaafaeaf95a91667fd411023280d0f902 (diff)
downloadvim-git-e7893a4088d6ea796bcab6195d232cb26c12c317.tar.gz
patch 7.4.1055v7.4.1055
Problem: Running "make newtests" in src/testdir has no output. Solution: List the messages file when a test fails. (Christian Brabandt) Update the list of tests.
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/testdir/Makefile b/src/testdir/Makefile
index 6cc928c7f..8f321b585 100644
--- a/src/testdir/Makefile
+++ b/src/testdir/Makefile
@@ -120,7 +120,11 @@ nolog:
# Limitation: Only works with the +eval feature.
RUN_VIMTEST = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f -u unix.vim -U NONE --noplugin
-newtests: $(NEW_TESTS)
+newtests: newtestssilent
+ @/bin/sh -c "if test -f messages && grep -q 'FAILED' messages; then cat messages && cat test.log; fi"
+
+newtestssilent: $(NEW_TESTS)
+
.vim.res:
$(RUN_VIMTEST) -u NONE -S runtest.vim $*.vim