aboutsummaryrefslogtreecommitdiff
path: root/src/testdir/Makefile
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-03-27 13:35:36 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-27 17:36:32 -0300
commite995b2156778fb28f1fbcf29a97d3f7f531e7583 (patch)
tree9049279ccadfaf1a6d429a4e3a46f5410f78afe0 /src/testdir/Makefile
parent1e8eb4e2c6f75b12d863e52ded56ccd48b5c8769 (diff)
downloadrneovim-e995b2156778fb28f1fbcf29a97d3f7f531e7583.tar.gz
rneovim-e995b2156778fb28f1fbcf29a97d3f7f531e7583.tar.bz2
rneovim-e995b2156778fb28f1fbcf29a97d3f7f531e7583.zip
Re-integrate FEAT_FILTERPIPE code
This feature was accidentally removed when doing the initial import from vim. It makes vim use pipes instead of temporary files for filtering buffers through shell commands. I found that this was missing when looking for references of SHELL_READ/SHELL_WRITE outside mch_call_shell`. When `mch_call_shell` is reimplemented on top of libuv process management facilities, pipes will always be used for communication with child processes so it makes sense to enable the feature permanently.
Diffstat (limited to 'src/testdir/Makefile')
-rw-r--r--src/testdir/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/testdir/Makefile b/src/testdir/Makefile
index 6605a0f049..06223de8c5 100644
--- a/src/testdir/Makefile
+++ b/src/testdir/Makefile
@@ -27,12 +27,8 @@ SCRIPTS := test1.out test2.out test3.out test4.out test5.out test6.out \
SCRIPTS_GUI := test16.out
-ifdef VALGRIND_GDB
-VGDB := --vgdb=yes --vgdb-error=0
-endif
-
-ifdef VALGRIND_CHECK
-VALGRIND = valgrind --suppressions=../../.valgrind.supp --leak-check=full --error-exitcode=123 --log-file=valgrind.$* $(VGDB)
+ifdef USE_GDB
+GDB = gdb --args
endif
ifdef TESTNUM
@@ -45,6 +41,9 @@ nongui: nolog $(SCRIPTS) report
gui: nolog $(SCRIPTS) $(SCRIPTS_GUI) report
+.gdbinit:
+ echo 'set $$_exitcode = -1\nrun\nif $$_exitcode != -1\n quit\nend' > .gdbinit
+
report:
@echo
@echo 'Test results:'
@@ -57,12 +56,12 @@ $(SCRIPTS) $(SCRIPTS_GUI): $(VIMPROG)
RM_ON_RUN = test.out X* viminfo
RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok
-RUN_VIM = $(VALGRIND) $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in
+RUN_VIM = $(GDB) $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in
clean:
-rm -rf *.out *.failed *.rej *.orig test.log $(RM_ON_RUN) $(RM_ON_START) valgrind.*
-test1.out: test1.in
+test1.out: .gdbinit test1.in
-rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START) wrongtermsize
$(RUN_VIM) $*.in
@/bin/sh -c "if test -e wrongtermsize; \
@@ -76,7 +75,7 @@ test1.out: test1.in
echo; exit 1; fi"
-rm -rf X* viminfo
-.in.out:
+.in.out: .gdbinit
-rm -rf $*.failed test.ok $(RM_ON_RUN)
cp $*.ok test.ok
# Sleep a moment to avoid that the xterm title is messed up.