Skip to content

Commit

Permalink
patch 8.0.1690: not easy to run one test with gvim instead of vim
Browse files Browse the repository at this point in the history
Problem:    Not easy to run one test with gvim instead of vim.
Solution:   Add VIMTESTTARGET in Makefile.
  • Loading branch information
brammool committed Apr 10, 2018
1 parent 29f9ed2 commit 8dd1761
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Makefile
Expand Up @@ -2088,6 +2088,10 @@ benchmark:
unittesttargets: unittesttargets:
$(MAKE) -f Makefile $(UNITTEST_TARGETS) $(MAKE) -f Makefile $(UNITTEST_TARGETS)


# Swap these lines to run individual tests with gvim instead of vim.
VIMTESTTARGET = $(VIMTARGET)
# VIMTESTTARGET = $(GVIMTARGET)

# Execute the unittests one by one. # Execute the unittests one by one.
unittest unittests: $(RUN_UNITTESTS) unittest unittests: $(RUN_UNITTESTS)


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


# Run individual NEW style test. # Run individual NEW style test.
# These do not depend on the executable, compile it when needed. # These do not depend on the executable, compile it when needed.
Expand Down Expand Up @@ -2312,14 +2316,14 @@ test_arglist \
test_alot_latin \ test_alot_latin \
test_alot_utf8 \ test_alot_utf8 \
test_alot: test_alot:
cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile $@.res VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE) cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile $@.res VIMPROG=../$(VIMTESTTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
@if test -f testdir/test.log; then \ @if test -f testdir/test.log; then \
cat testdir/test.log; \ cat testdir/test.log; \
fi fi
cat testdir/messages cat testdir/messages


newtests: newtests:
cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile newtestssilent VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE) cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile newtestssilent VIMPROG=../$(VIMTESTTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
@if test -f testdir/test.log; then \ @if test -f testdir/test.log; then \
cat testdir/test.log; \ cat testdir/test.log; \
fi fi
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -762,6 +762,8 @@ static char *(features[]) =


static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1690,
/**/ /**/
1689, 1689,
/**/ /**/
Expand Down

0 comments on commit 8dd1761

Please sign in to comment.