Skip to content

Commit 8dd1761

Browse files
committed
patch 8.0.1690: not easy to run one test with gvim instead of vim
Problem: Not easy to run one test with gvim instead of vim. Solution: Add VIMTESTTARGET in Makefile.
1 parent 29f9ed2 commit 8dd1761

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,6 +2088,10 @@ benchmark:
20882088
unittesttargets:
20892089
$(MAKE) -f Makefile $(UNITTEST_TARGETS)
20902090

2091+
# Swap these lines to run individual tests with gvim instead of vim.
2092+
VIMTESTTARGET = $(VIMTARGET)
2093+
# VIMTESTTARGET = $(GVIMTARGET)
2094+
20912095
# Execute the unittests one by one.
20922096
unittest unittests: $(RUN_UNITTESTS)
20932097

@@ -2115,7 +2119,7 @@ test1 \
21152119
test70 test72 \
21162120
test85 test86 test87 test88 \
21172121
test94 test95 test99 test108:
2118-
cd testdir; rm -f $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
2122+
cd testdir; rm -f $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTESTTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
21192123

21202124
# Run individual NEW style test.
21212125
# These do not depend on the executable, compile it when needed.
@@ -2312,14 +2316,14 @@ test_arglist \
23122316
test_alot_latin \
23132317
test_alot_utf8 \
23142318
test_alot:
2315-
cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile $@.res VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
2319+
cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile $@.res VIMPROG=../$(VIMTESTTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
23162320
@if test -f testdir/test.log; then \
23172321
cat testdir/test.log; \
23182322
fi
23192323
cat testdir/messages
23202324

23212325
newtests:
2322-
cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile newtestssilent VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
2326+
cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile newtestssilent VIMPROG=../$(VIMTESTTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
23232327
@if test -f testdir/test.log; then \
23242328
cat testdir/test.log; \
23252329
fi

src/version.c

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

763763
static int included_patches[] =
764764
{ /* Add new patch number below this line */
765+
/**/
766+
1690,
765767
/**/
766768
1689,
767769
/**/

0 commit comments

Comments
 (0)