mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 7.4.1934
Problem: New style tests not executed with MinGW compiler. Solution: Add new style test support. (Yegappan Lakshmanan)
This commit is contained in:
@@ -45,58 +45,77 @@ SCRIPTS_BENCH = bench_re_freeze.out
|
|||||||
# 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)
|
||||||
|
|
||||||
.SUFFIXES: .in .out
|
.SUFFIXES: .in .out .res .vim
|
||||||
|
|
||||||
vimall: fixff $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS_WIN32)
|
vimall: fixff $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS_WIN32) newtests
|
||||||
echo ALL DONE
|
echo ALL DONE
|
||||||
|
|
||||||
nongui: fixff $(SCRIPTS_FIRST) $(SCRIPTS)
|
nongui: fixff nolog $(SCRIPTS_FIRST) $(SCRIPTS) newtests
|
||||||
echo ALL DONE
|
echo ALL DONE
|
||||||
|
|
||||||
benchmark: $(SCRIPTS_BENCH)
|
benchmark: $(SCRIPTS_BENCH)
|
||||||
|
|
||||||
small:
|
small: nolog
|
||||||
echo ALL DONE
|
echo ALL DONE
|
||||||
|
|
||||||
gui: fixff $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI)
|
gui: fixff nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) newtests
|
||||||
echo ALL DONE
|
echo ALL DONE
|
||||||
|
|
||||||
win32: fixff $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_WIN32)
|
win32: fixff nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_WIN32) newtests
|
||||||
echo ALL DONE
|
echo ALL DONE
|
||||||
|
|
||||||
|
# TODO: find a way to avoid changing the distributed files.
|
||||||
fixff:
|
fixff:
|
||||||
# TODO: find a way to avoid changing the distributed files.
|
|
||||||
-$(VIMPROG) -u dos.vim $(NO_PLUGIN) "+argdo set ff=dos|upd" +q *.in *.ok
|
-$(VIMPROG) -u dos.vim $(NO_PLUGIN) "+argdo set ff=dos|upd" +q *.in *.ok
|
||||||
-$(VIMPROG) -u dos.vim $(NO_PLUGIN) "+argdo set ff=unix|upd" +q \
|
-$(VIMPROG) -u dos.vim $(NO_PLUGIN) "+argdo set ff=unix|upd" +q \
|
||||||
dotest.in test60.ok test71.ok test74.ok test_listchars.ok \
|
dotest.in test60.ok test71.ok test74.ok test_listchars.ok \
|
||||||
test_getcwd.ok test_wordcount.ok
|
test_getcwd.ok test_wordcount.ok
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-$(DEL) *.out
|
-@if exist *.out $(DEL) *.out
|
||||||
-$(DEL) test.ok
|
-@if exist *.failed $(DEL) *.failed
|
||||||
-$(DEL) small.vim
|
-@if exist *.res $(DEL) *.res
|
||||||
-$(DEL) tiny.vim
|
-@if exist test.in $(DEL) test.in
|
||||||
-$(DEL) mbyte.vim
|
-@if exist test.ok $(DEL) test.ok
|
||||||
-$(DEL) mzscheme.vim
|
-@if exist small.vim $(DEL) small.vim
|
||||||
-$(DEL) lua.vim
|
-@if exist tiny.vim $(DEL) tiny.vim
|
||||||
-$(DELDIR) Xdir1
|
-@if exist mbyte.vim $(DEL) mbyte.vim
|
||||||
-$(DELDIR) Xfind
|
-@if exist mzscheme.vim $(DEL) mzscheme.vim
|
||||||
-$(DEL) X*
|
-@if exist lua.vim $(DEL) lua.vim
|
||||||
-$(DEL) viminfo
|
-@if exist Xdir1 $(DELDIR) Xdir1
|
||||||
|
-@if exist Xfind $(DELDIR) Xfind
|
||||||
|
-@if exist X* $(DEL) X*
|
||||||
|
-@if exist viminfo $(DEL) viminfo
|
||||||
|
-@if exist test.log $(DEL) test.log
|
||||||
|
-@if exist messages $(DEL) messages
|
||||||
|
|
||||||
.in.out:
|
.in.out:
|
||||||
$(CP) $*.ok test.ok
|
-@if exist $*.ok $(CP) $*.ok test.ok
|
||||||
$(VIMPROG) -u dos.vim $(NO_PLUGIN) -s dotest.in $*.in
|
$(VIMPROG) -u dos.vim $(NO_PLUGIN) -s dotest.in $*.in
|
||||||
diff test.out $*.ok
|
@diff test.out $*.ok
|
||||||
-$(DEL) $*.out
|
-@if exist $*.out $(DEL) $*.out
|
||||||
$(MV) test.out $*.out
|
@$(MV) test.out $*.out
|
||||||
-$(DELDIR) Xdir1
|
-@if exist Xdir1 $(DELDIR) Xdir1
|
||||||
-$(DELDIR) Xfind
|
-@if exist Xfind $(DELDIR) Xfind
|
||||||
-$(DEL) X*
|
-@if exist X* $(DEL) X*
|
||||||
-$(DEL) test.ok
|
-@if exist test.ok $(DEL) test.ok
|
||||||
-$(DEL) viminfo
|
-@if exist viminfo $(DEL) viminfo
|
||||||
|
|
||||||
|
nolog:
|
||||||
|
-@if exist test.log $(DEL) test.log
|
||||||
|
-@if exist messages $(DEL) messages
|
||||||
|
|
||||||
bench_re_freeze.out: bench_re_freeze.vim
|
bench_re_freeze.out: bench_re_freeze.vim
|
||||||
-$(DEL) benchmark.out
|
-$(DEL) benchmark.out
|
||||||
$(VIMPROG) -u dos.vim $(NO_PLUGIN) $*.in
|
$(VIMPROG) -u dos.vim $(NO_PLUGIN) $*.in
|
||||||
$(CAT) benchmark.out
|
$(CAT) 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 $(NO_PLUGIN) -S runtest.vim $*.vim
|
||||||
|
|
||||||
|
@@ -753,6 +753,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 */
|
||||||
|
/**/
|
||||||
|
1934,
|
||||||
/**/
|
/**/
|
||||||
1933,
|
1933,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user