Skip to content

Commit 3f12a24

Browse files
committed
patch 7.4.962
Problem: Cannot run the tests with gvim. Cannot run individual new stests. Solution: Add the -f flag. Add new test targets in Makefile.
1 parent 9dc2ce3 commit 3f12a24

3 files changed

Lines changed: 18 additions & 4 deletions

File tree

src/Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,16 @@ test1 \
19451945
test80 test81 test82 test83 test84 test85 test86 test87 test88 test89 \
19461946
test90 test91 test92 test93 test94 test95 test96 test97 test98 test99 \
19471947
test100 test101 test102 test103 test104 test105 test106 test107:
1948-
cd testdir; rm [email protected]; $(MAKE) -f Makefile [email protected] VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
1948+
cd testdir; rm -f [email protected]; $(MAKE) -f Makefile [email protected] VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
1949+
1950+
test_assert \
1951+
test_sort \
1952+
test_undolevels \
1953+
test_alot:
1954+
cd testdir; rm -f [email protected]; $(MAKE) -f Makefile [email protected] VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
1955+
1956+
newtests:
1957+
cd testdir; rm -f $@.res; $(MAKE) -f Makefile newtests VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
19491958

19501959
testclean:
19511960
cd testdir; $(MAKE) -f Makefile clean

src/testdir/Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
# Makefile to run all tests for Vim
33
#
44

5+
# Use console or GUI.
56
VIMPROG = ../vim
7+
# VIMPROG = ../gvim
8+
69
SCRIPTSOURCE = ../../runtime
710

811
# Uncomment this line to use valgrind for memory leaks and extra warnings.
@@ -91,11 +94,11 @@ report:
9194
else echo ALL DONE; \
9295
fi"
9396

94-
$(SCRIPTS) $(SCRIPTS_GUI): $(VIMPROG)
97+
$(SCRIPTS) $(SCRIPTS_GUI) $(NEW_TESTS): $(VIMPROG)
9598

9699
RM_ON_RUN = test.out X* viminfo
97100
RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok benchmark.out
98-
RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in
101+
RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f -u unix.vim -U NONE --noplugin -s dotest.in
99102

100103
clean:
101104
-rm -rf *.out *.failed *.res *.rej *.orig test.log $(RM_ON_RUN) $(RM_ON_START) valgrind.*
@@ -165,7 +168,7 @@ nolog:
165168
# New style of tests uses Vim script with assert calls. These are easier
166169
# to write and a lot easier to read and debug.
167170
# Limitation: Only works with the +eval feature.
168-
RUN_VIMTEST = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -u unix.vim -U NONE --noplugin
171+
RUN_VIMTEST = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f -u unix.vim -U NONE --noplugin
169172

170173
newtests: $(NEW_TESTS)
171174

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
962,
744746
/**/
745747
961,
746748
/**/

0 commit comments

Comments
 (0)