]> granicus.if.org Git - vim/commitdiff
patch 7.4.962 v7.4.962
authorBram Moolenaar <Bram@vim.org>
Sat, 5 Dec 2015 19:56:57 +0000 (20:56 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 5 Dec 2015 19:56:57 +0000 (20:56 +0100)
Problem:    Cannot run the tests with gvim.  Cannot run individual new stests.
Solution:   Add the -f flag. Add new test targets in Makefile.

src/Makefile
src/testdir/Makefile
src/version.c

index ab1014f9e9f7cafff5e075e0962263f99af96d68..3f29d461f59c9997844fb3124bc044aa45a3b3b1 100644 (file)
@@ -1945,7 +1945,16 @@ test1 \
        test80 test81 test82 test83 test84 test85 test86 test87 test88 test89 \
        test90 test91 test92 test93 test94 test95 test96 test97 test98 test99 \
        test100 test101 test102 test103 test104 test105 test106 test107:
-       cd testdir; rm $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
+       cd testdir; rm -f $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
+
+test_assert \
+       test_sort \
+       test_undolevels \
+       test_alot:
+       cd testdir; rm -f $@.res; $(MAKE) -f Makefile $@.res VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
+
+newtests:
+       cd testdir; rm -f $@.res; $(MAKE) -f Makefile newtests VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
 
 testclean:
        cd testdir; $(MAKE) -f Makefile clean
index 932150697c9e48c7a8872ded15d5ddc7f83fe19a..83350aa638cec25cfec760c29f81c5621ec6be3c 100644 (file)
@@ -2,7 +2,10 @@
 # Makefile to run all tests for Vim
 #
 
+# Use console or GUI.
 VIMPROG = ../vim
+# VIMPROG = ../gvim
+
 SCRIPTSOURCE = ../../runtime
 
 # Uncomment this line to use valgrind for memory leaks and extra warnings.
@@ -91,11 +94,11 @@ report:
                else echo ALL DONE; \
                fi"
 
-$(SCRIPTS) $(SCRIPTS_GUI): $(VIMPROG)
+$(SCRIPTS) $(SCRIPTS_GUI) $(NEW_TESTS): $(VIMPROG)
 
 RM_ON_RUN = test.out X* viminfo
 RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok benchmark.out
-RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in
+RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f -u unix.vim -U NONE --noplugin -s dotest.in
 
 clean:
        -rm -rf *.out *.failed *.res *.rej *.orig test.log $(RM_ON_RUN) $(RM_ON_START) valgrind.*
@@ -165,7 +168,7 @@ nolog:
 # New style of tests uses Vim script with assert calls.  These are easier
 # to write and a lot easier to read and debug.
 # Limitation: Only works with the +eval feature.
-RUN_VIMTEST = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -u unix.vim -U NONE --noplugin
+RUN_VIMTEST = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f -u unix.vim -U NONE --noplugin
 
 newtests: $(NEW_TESTS)
 
index 514f8be76c2c3f8d8af31689ec13b2f2de7cb263..af22fb02843a359521ffba83b181f3906235e449 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    962,
 /**/
     961,
 /**/