File tree Expand file tree Collapse file tree 9 files changed +25
-6
lines changed
Expand file tree Collapse file tree 9 files changed +25
-6
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ src/testdir/test.log
7878src /testdir /dostmp /*
7979src /testdir /messages
8080src /testdir /viminfo
81+ src /testdir /opt_test.vim
8182src /memfile_test
8283src /json_test
8384src /message_test
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ SRC_ALL = \
9797 src/tee/tee.c \
9898 src/xxd/xxd.c \
9999 src/main.aap \
100- src/gen_opt_test.vim \
100+ src/testdir/ gen_opt_test.vim \
101101 src/testdir/main.aap \
102102 src/testdir/README.txt \
103103 src/testdir/Make_all.mak \
Original file line number Diff line number Diff line change @@ -2025,7 +2025,6 @@ test check: scripttests unittests
20252025#
20262026scripttests :
20272027 $(MAKE ) -f Makefile $(VIMTARGET )
2028- $(MAKE ) -f Makefile testdir/opt_test.vim
20292028 if test -n " $( MAKEMO) " -a -f $( PODIR) /Makefile; then \
20302029 cd $(PODIR ) ; $(MAKE ) -f Makefile check VIM=../$(VIMTARGET ) ; \
20312030 fi
@@ -2034,9 +2033,6 @@ scripttests:
20342033 fi
20352034 cd testdir; $(MAKE ) -f Makefile $(GUI_TESTTARGET ) VIMPROG=../$(VIMTARGET ) $(GUI_TESTARG ) SCRIPTSOURCE=../$(SCRIPTSOURCE )
20362035
2037- testdir/opt_test.vim : option.c gen_opt_test.vim
2038- ./$(VIMTARGET ) -u gen_opt_test.vim --noplugin --not-a-term
2039-
20402036# Run the tests with the GUI. Assumes vim/gvim was already built
20412037testgui :
20422038 cd testdir; $(MAKE ) -f Makefile $(GUI_TESTTARGET ) VIMPROG=../$(VIMTARGET ) GUI_FLAG=-g $(GUI_TESTARG ) SCRIPTSOURCE=../$(SCRIPTSOURCE )
Original file line number Diff line number Diff line change @@ -221,3 +221,4 @@ test49.out: test49.vim
221221
222222test60.out : test60.vim
223223
224+ test_options.res : opt_test.vim
Original file line number Diff line number Diff line change 9494 -if exist test.log del test.log
9595 -if exist messages del messages
9696 -if exist benchmark.out del benchmark.out
97+ -if exist opt_test.vim del opt_test.vim
9798
9899nolog :
99100 -if exist test.log del test.log
@@ -127,3 +128,6 @@ test_gui_init.res: test_gui_init.vim
127128 @echo " $( VIMPROG) " > vimcmd
128129 $(VIMPROG ) -u NONE -U gui_init.vim $(NO_PLUGINS ) -S runtest.vim $* .vim
129130 @del vimcmd
131+
132+ opt_test.vim : ../option.c gen_opt_test.vim
133+ $(VIMPROG ) -u gen_opt_test.vim --noplugin --not-a-term
Original file line number Diff line number Diff line change 8888 -@if exist viminfo $(DEL ) viminfo
8989 -@if exist test.log $(DEL ) test.log
9090 -@if exist messages $(DEL ) messages
91+ -@if exist opt_test.vim $(DEL ) opt_test.vim
9192
9293.in.out :
9394 -@if exist $* .ok $(CP ) $* .ok test.ok
@@ -131,3 +132,5 @@ test_gui_init.res: test_gui_init.vim
131132 $(VIMPROG ) -u NONE -U gui_init.vim $(NO_PLUGINS ) -S runtest.vim $<
132133 @$(DEL ) vimcmd
133134
135+ opt_test.vim : ../option.c gen_opt_test.vim
136+ $(VIMPROG ) -u gen_opt_test.vim --noplugin --not-a-term
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok benchmar
5555RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE ) ; export VIMRUNTIME; $(VALGRIND ) $(VIMPROG ) -f $(GUI_FLAG ) -u unix.vim $(NO_INITS ) -s dotest.in
5656
5757clean :
58- -rm -rf * .out * .failed * .res * .rej * .orig test.log messages $(RM_ON_RUN ) $(RM_ON_START ) valgrind.*
58+ -rm -rf * .out * .failed * .res * .rej * .orig opt_test.vim test.log messages $(RM_ON_RUN ) $(RM_ON_START ) valgrind.*
5959
6060test1.out : test1.in
6161 -rm -rf $* .failed $(RM_ON_RUN ) $(RM_ON_START ) wrongtermsize
@@ -140,3 +140,7 @@ test_gui_init.res: test_gui_init.vim
140140 @echo " $( RUN_GVIMTEST_WITH_GVIMRC) " > vimcmd
141141 $(RUN_VIMTEST ) -u NONE -U gui_init.vim $(NO_PLUGINS ) -S runtest.vim $<
142142 @rm vimcmd
143+
144+ opt_test.vim : ../option.c gen_opt_test.vim
145+ $(VIMPROG ) -u gen_opt_test.vim --noplugin --not-a-term
146+
Original file line number Diff line number Diff line change @@ -169,6 +169,10 @@ while 1
169169 for val in a [0 ]
170170 call add (script , ' set ' . name . ' =' . val)
171171 call add (script , ' set ' . shortname . ' =' . val)
172+
173+ if name == ' verbosefile' && ! empty (val)
174+ call add (script , ' call delete("' . val. ' ")' )
175+ endif
172176 endfor
173177
174178 " setting an option can only fail when it's implemented.
@@ -182,6 +186,10 @@ while 1
182186
183187 call add (script , ' set ' . name . ' &' )
184188 call add (script , ' set ' . shortname . ' &' )
189+
190+ if name == ' more'
191+ call add (script , ' set nomore' )
192+ endif
185193 endif
186194endwhile
187195
Original file line number Diff line number Diff line change @@ -764,6 +764,8 @@ static char *(features[]) =
764764
765765static int included_patches [] =
766766{ /* Add new patch number below this line */
767+ /**/
768+ 428 ,
767769/**/
768770 427 ,
769771/**/
You can’t perform that action at this time.
0 commit comments