aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorwatiko <service@mail.watiko.net>2016-01-10 09:10:17 +0900
committerwatiko <service@mail.watiko.net>2016-01-10 10:44:56 +0900
commit6c8e572d098457868c9090fa562d9628c6537849 (patch)
tree8ca78ed1bd3fad5812ac7092a45efc9f810ae6d6 /src/nvim/testdir
parent3a6cef9ee6de3ae577114a56343a9e336f900eac (diff)
downloadrneovim-6c8e572d098457868c9090fa562d9628c6537849.tar.gz
rneovim-6c8e572d098457868c9090fa562d9628c6537849.tar.bz2
rneovim-6c8e572d098457868c9090fa562d9628c6537849.zip
vim-patch:7.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. https://github.com/vim/vim/commit/e7893a4088d6ea796bcab6195d232cb26c12c317
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/testdir/Makefile b/src/nvim/testdir/Makefile
index 23a9b97d91..efcb8a68d2 100644
--- a/src/nvim/testdir/Makefile
+++ b/src/nvim/testdir/Makefile
@@ -158,7 +158,12 @@ nolog:
# Limitation: Only works with the +eval feature.
RUN_VIMTEST = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -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)
%.res: %.vim .gdbinit
$(RUN_VIMTEST) -u runtest.vim $*.vim