mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
patch 7.4.994
Problem: New style tests are not run on MS-Windows. Solution: Add the new style tests.
This commit is contained in:
@ -25,18 +25,18 @@ DOSTMP = dostmp
|
|||||||
DOSTMP_OUTFILES = $(TEST_OUTFILES:test=dostmp\test)
|
DOSTMP_OUTFILES = $(TEST_OUTFILES:test=dostmp\test)
|
||||||
DOSTMP_INFILES = $(DOSTMP_OUTFILES:.out=.in)
|
DOSTMP_INFILES = $(DOSTMP_OUTFILES:.out=.in)
|
||||||
|
|
||||||
.SUFFIXES: .in .out
|
.SUFFIXES: .in .out .res .vim
|
||||||
|
|
||||||
# Must run test1 first to create small.vim.
|
# Must run test1 first to create small.vim.
|
||||||
$(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS_WIN32) $(NEW_TESTS): $(SCRIPTS_FIRST)
|
$(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS_WIN32) $(NEW_TESTS): $(SCRIPTS_FIRST)
|
||||||
|
|
||||||
nongui: nolog $(SCRIPTS_FIRST) $(SCRIPTS) report
|
nongui: nolog $(SCRIPTS_FIRST) $(SCRIPTS) newtests report
|
||||||
|
|
||||||
small: nolog report
|
small: nolog report
|
||||||
|
|
||||||
gui: nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) report
|
gui: nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) newtests report
|
||||||
|
|
||||||
win32: nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_WIN32) report
|
win32: nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_WIN32) newtests report
|
||||||
|
|
||||||
# Copy the input files to dostmp, changing the fileformat to dos.
|
# Copy the input files to dostmp, changing the fileformat to dos.
|
||||||
$(DOSTMP_INFILES): $(*B).in
|
$(DOSTMP_INFILES): $(*B).in
|
||||||
@ -76,6 +76,7 @@ report:
|
|||||||
clean:
|
clean:
|
||||||
-del *.out
|
-del *.out
|
||||||
-del *.failed
|
-del *.failed
|
||||||
|
-del *.res
|
||||||
-if exist $(DOSTMP) rd /s /q $(DOSTMP)
|
-if exist $(DOSTMP) rd /s /q $(DOSTMP)
|
||||||
-if exist test.in del test.in
|
-if exist test.in del test.in
|
||||||
-if exist test.ok del test.ok
|
-if exist test.ok del test.ok
|
||||||
@ -89,10 +90,12 @@ clean:
|
|||||||
-if exist Xfind rd /s /q Xfind
|
-if exist Xfind rd /s /q Xfind
|
||||||
-if exist viminfo del viminfo
|
-if exist viminfo del viminfo
|
||||||
-if exist test.log del test.log
|
-if exist test.log del test.log
|
||||||
|
-if exist messages del messages
|
||||||
-if exist benchmark.out del benchmark.out
|
-if exist benchmark.out del benchmark.out
|
||||||
|
|
||||||
nolog:
|
nolog:
|
||||||
-if exist test.log del test.log
|
-if exist test.log del test.log
|
||||||
|
-if exist messages del messages
|
||||||
|
|
||||||
benchmark:
|
benchmark:
|
||||||
bench_re_freeze.out
|
bench_re_freeze.out
|
||||||
@ -101,3 +104,12 @@ bench_re_freeze.out: bench_re_freeze.vim
|
|||||||
-if exist benchmark.out del benchmark.out
|
-if exist benchmark.out del benchmark.out
|
||||||
$(VIMPROG) -u dos.vim -U NONE --noplugin $*.in
|
$(VIMPROG) -u dos.vim -U NONE --noplugin $*.in
|
||||||
@IF EXIST benchmark.out ( type benchmark.out )
|
@IF EXIST benchmark.out ( type benchmark.out )
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
newtests: $(NEW_TESTS)
|
||||||
|
|
||||||
|
.vim.res:
|
||||||
|
$(VIMPROG) -u NONE -S runtest.vim $*.vim
|
||||||
|
@ -741,6 +741,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 */
|
||||||
|
/**/
|
||||||
|
994,
|
||||||
/**/
|
/**/
|
||||||
993,
|
993,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user