Mercurial > vim
comparison src/testdir/Make_ming.mak @ 9303:1cc29584ef6d v7.4.1934
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 13 22:58:39 2016 +0200
patch 7.4.1934
Problem: New style tests not executed with MinGW compiler.
Solution: Add new style test support. (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 13 Jun 2016 23:00:06 +0200 |
parents | 0bab7b98e930 |
children | 3089f1d99b9e |
comparison
equal
deleted
inserted
replaced
9302:a8f7f8b5dfc3 | 9303:1cc29584ef6d |
---|---|
43 SCRIPTS_BENCH = bench_re_freeze.out | 43 SCRIPTS_BENCH = bench_re_freeze.out |
44 | 44 |
45 # Must run test1 first to create small.vim. | 45 # Must run test1 first to create small.vim. |
46 $(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS_WIN32) $(NEW_TESTS): $(SCRIPTS_FIRST) | 46 $(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS_WIN32) $(NEW_TESTS): $(SCRIPTS_FIRST) |
47 | 47 |
48 .SUFFIXES: .in .out | 48 .SUFFIXES: .in .out .res .vim |
49 | 49 |
50 vimall: fixff $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS_WIN32) | 50 vimall: fixff $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS_WIN32) newtests |
51 echo ALL DONE | 51 echo ALL DONE |
52 | 52 |
53 nongui: fixff $(SCRIPTS_FIRST) $(SCRIPTS) | 53 nongui: fixff nolog $(SCRIPTS_FIRST) $(SCRIPTS) newtests |
54 echo ALL DONE | 54 echo ALL DONE |
55 | 55 |
56 benchmark: $(SCRIPTS_BENCH) | 56 benchmark: $(SCRIPTS_BENCH) |
57 | 57 |
58 small: | 58 small: nolog |
59 echo ALL DONE | 59 echo ALL DONE |
60 | 60 |
61 gui: fixff $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) | 61 gui: fixff nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) newtests |
62 echo ALL DONE | 62 echo ALL DONE |
63 | 63 |
64 win32: fixff $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_WIN32) | 64 win32: fixff nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_WIN32) newtests |
65 echo ALL DONE | 65 echo ALL DONE |
66 | 66 |
67 # TODO: find a way to avoid changing the distributed files. | |
67 fixff: | 68 fixff: |
68 # TODO: find a way to avoid changing the distributed files. | |
69 -$(VIMPROG) -u dos.vim $(NO_PLUGIN) "+argdo set ff=dos|upd" +q *.in *.ok | 69 -$(VIMPROG) -u dos.vim $(NO_PLUGIN) "+argdo set ff=dos|upd" +q *.in *.ok |
70 -$(VIMPROG) -u dos.vim $(NO_PLUGIN) "+argdo set ff=unix|upd" +q \ | 70 -$(VIMPROG) -u dos.vim $(NO_PLUGIN) "+argdo set ff=unix|upd" +q \ |
71 dotest.in test60.ok test71.ok test74.ok test_listchars.ok \ | 71 dotest.in test60.ok test71.ok test74.ok test_listchars.ok \ |
72 test_getcwd.ok test_wordcount.ok | 72 test_getcwd.ok test_wordcount.ok |
73 | 73 |
74 clean: | 74 clean: |
75 -$(DEL) *.out | 75 -@if exist *.out $(DEL) *.out |
76 -$(DEL) test.ok | 76 -@if exist *.failed $(DEL) *.failed |
77 -$(DEL) small.vim | 77 -@if exist *.res $(DEL) *.res |
78 -$(DEL) tiny.vim | 78 -@if exist test.in $(DEL) test.in |
79 -$(DEL) mbyte.vim | 79 -@if exist test.ok $(DEL) test.ok |
80 -$(DEL) mzscheme.vim | 80 -@if exist small.vim $(DEL) small.vim |
81 -$(DEL) lua.vim | 81 -@if exist tiny.vim $(DEL) tiny.vim |
82 -$(DELDIR) Xdir1 | 82 -@if exist mbyte.vim $(DEL) mbyte.vim |
83 -$(DELDIR) Xfind | 83 -@if exist mzscheme.vim $(DEL) mzscheme.vim |
84 -$(DEL) X* | 84 -@if exist lua.vim $(DEL) lua.vim |
85 -$(DEL) viminfo | 85 -@if exist Xdir1 $(DELDIR) Xdir1 |
86 -@if exist Xfind $(DELDIR) Xfind | |
87 -@if exist X* $(DEL) X* | |
88 -@if exist viminfo $(DEL) viminfo | |
89 -@if exist test.log $(DEL) test.log | |
90 -@if exist messages $(DEL) messages | |
86 | 91 |
87 .in.out: | 92 .in.out: |
88 $(CP) $*.ok test.ok | 93 -@if exist $*.ok $(CP) $*.ok test.ok |
89 $(VIMPROG) -u dos.vim $(NO_PLUGIN) -s dotest.in $*.in | 94 $(VIMPROG) -u dos.vim $(NO_PLUGIN) -s dotest.in $*.in |
90 diff test.out $*.ok | 95 @diff test.out $*.ok |
91 -$(DEL) $*.out | 96 -@if exist $*.out $(DEL) $*.out |
92 $(MV) test.out $*.out | 97 @$(MV) test.out $*.out |
93 -$(DELDIR) Xdir1 | 98 -@if exist Xdir1 $(DELDIR) Xdir1 |
94 -$(DELDIR) Xfind | 99 -@if exist Xfind $(DELDIR) Xfind |
95 -$(DEL) X* | 100 -@if exist X* $(DEL) X* |
96 -$(DEL) test.ok | 101 -@if exist test.ok $(DEL) test.ok |
97 -$(DEL) viminfo | 102 -@if exist viminfo $(DEL) viminfo |
103 | |
104 nolog: | |
105 -@if exist test.log $(DEL) test.log | |
106 -@if exist messages $(DEL) messages | |
98 | 107 |
99 bench_re_freeze.out: bench_re_freeze.vim | 108 bench_re_freeze.out: bench_re_freeze.vim |
100 -$(DEL) benchmark.out | 109 -$(DEL) benchmark.out |
101 $(VIMPROG) -u dos.vim $(NO_PLUGIN) $*.in | 110 $(VIMPROG) -u dos.vim $(NO_PLUGIN) $*.in |
102 $(CAT) benchmark.out | 111 $(CAT) benchmark.out |
112 | |
113 # New style of tests uses Vim script with assert calls. These are easier | |
114 # to write and a lot easier to read and debug. | |
115 # Limitation: Only works with the +eval feature. | |
116 | |
117 newtests: $(NEW_TESTS) | |
118 | |
119 .vim.res: | |
120 $(VIMPROG) -u NONE $(NO_PLUGIN) -S runtest.vim $*.vim | |
121 |