Patch 8.0.1690
Problem:    Not easy to run one test with gvim instead of vim.
Solution:   Add VIMTESTTARGET in Makefile.
Files:      src/Makefile


*** ../vim-8.0.1689/src/Makefile        2018-04-10 19:20:12.595187129 +0200
--- src/Makefile        2018-04-10 19:22:24.434242370 +0200
***************
*** 2088,2093 ****
--- 2088,2097 ----
  unittesttargets:
        $(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.
  unittest unittests: $(RUN_UNITTESTS)
  
***************
*** 2115,2121 ****
        test70 test72 \
        test85 test86 test87 test88 \
        test94 test95 test99 test108:
!       cd testdir; rm -f $@.out; $(MAKE) -f Makefile $@.out 
VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
  
  # Run individual NEW style test.
  # These do not depend on the executable, compile it when needed.
--- 2119,2125 ----
        test70 test72 \
        test85 test86 test87 test88 \
        test94 test95 test99 test108:
!       cd testdir; rm -f $@.out; $(MAKE) -f Makefile $@.out 
VIMPROG=../$(VIMTESTTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
  
  # Run individual NEW style test.
  # These do not depend on the executable, compile it when needed.
***************
*** 2312,2325 ****
        test_alot_latin \
        test_alot_utf8 \
        test_alot:
!       cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile $@.res 
VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
        @if test -f testdir/test.log; then \
                cat testdir/test.log; \
        fi
        cat testdir/messages
  
  newtests:
!       cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile 
newtestssilent VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) 
SCRIPTSOURCE=../$(SCRIPTSOURCE)
        @if test -f testdir/test.log; then \
                cat testdir/test.log; \
        fi
--- 2316,2329 ----
        test_alot_latin \
        test_alot_utf8 \
        test_alot:
!       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 \
                cat testdir/test.log; \
        fi
        cat testdir/messages
  
  newtests:
!       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 \
                cat testdir/test.log; \
        fi
*** ../vim-8.0.1689/src/version.c       2018-04-10 19:20:12.599187100 +0200
--- src/version.c       2018-04-10 19:21:48.390500485 +0200
***************
*** 764,765 ****
--- 764,767 ----
  {   /* Add new patch number below this line */
+ /**/
+     1690,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
151. You find yourself engaged to someone you've never actually met,
     except through e-mail.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui