Mercurial > vim
comparison src/testdir/Make_dos.mak @ 10944:4e2cdce4576c v8.0.0361
patch 8.0.0361: GUI initialisation is not sufficiently tested
commit https://github.com/vim/vim/commit/8be2fbb6705dfb41d06d688701803d206c968404
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 23 19:32:47 2017 +0100
patch 8.0.0361: GUI initialisation is not sufficiently tested
Problem: GUI initialisation is not sufficiently tested.
Solution: Add the gui_init test. (Kazuki Kuriyama)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 23 Feb 2017 19:45:04 +0100 |
parents | dfbe8f74806d |
children | 0fbba847496d |
comparison
equal
deleted
inserted
replaced
10943:02654bf3c3f6 | 10944:4e2cdce4576c |
---|---|
36 | 36 |
37 # Copy the input files to dostmp, changing the fileformat to dos. | 37 # Copy the input files to dostmp, changing the fileformat to dos. |
38 $(DOSTMP_INFILES): $(*B).in | 38 $(DOSTMP_INFILES): $(*B).in |
39 if not exist $(DOSTMP)\NUL md $(DOSTMP) | 39 if not exist $(DOSTMP)\NUL md $(DOSTMP) |
40 if exist $@ del $@ | 40 if exist $@ del $@ |
41 $(VIMPROG) -u dos.vim $(NO_PLUGIN) "+set ff=dos|f $@|wq" $(*B).in | 41 $(VIMPROG) -u dos.vim $(NO_INITS) "+set ff=dos|f $@|wq" $(*B).in |
42 | 42 |
43 # For each input file dostmp/test99.in run the tests. | 43 # For each input file dostmp/test99.in run the tests. |
44 # This moves test99.in to test99.in.bak temporarily. | 44 # This moves test99.in to test99.in.bak temporarily. |
45 $(TEST_OUTFILES): $(DOSTMP)\$(*B).in | 45 $(TEST_OUTFILES): $(DOSTMP)\$(*B).in |
46 -@if exist test.out DEL test.out | 46 -@if exist test.out DEL test.out |
47 move $(*B).in $(*B).in.bak > nul | 47 move $(*B).in $(*B).in.bak > nul |
48 copy $(DOSTMP)\$(*B).in $(*B).in > nul | 48 copy $(DOSTMP)\$(*B).in $(*B).in > nul |
49 copy $(*B).ok test.ok > nul | 49 copy $(*B).ok test.ok > nul |
50 $(VIMPROG) -u dos.vim $(NO_PLUGIN) -s dotest.in $(*B).in | 50 $(VIMPROG) -u dos.vim $(NO_INITS) -s dotest.in $(*B).in |
51 -@if exist test.out MOVE /y test.out $(DOSTMP)\$(*B).out > nul | 51 -@if exist test.out MOVE /y test.out $(DOSTMP)\$(*B).out > nul |
52 -@if exist $(*B).in.bak move /y $(*B).in.bak $(*B).in > nul | 52 -@if exist $(*B).in.bak move /y $(*B).in.bak $(*B).in > nul |
53 -@if exist test.ok del test.ok | 53 -@if exist test.ok del test.ok |
54 -@if exist Xdir1 rd /s /q Xdir1 | 54 -@if exist Xdir1 rd /s /q Xdir1 |
55 -@if exist Xfind rd /s /q Xfind | 55 -@if exist Xfind rd /s /q Xfind |
56 -@del X* | 56 -@del X* |
57 -@if exist viminfo del viminfo | 57 -@if exist viminfo del viminfo |
58 $(VIMPROG) -u dos.vim $(NO_PLUGIN) "+set ff=unix|f test.out|wq" \ | 58 $(VIMPROG) -u dos.vim $(NO_INITS) "+set ff=unix|f test.out|wq" \ |
59 $(DOSTMP)\$(*B).out | 59 $(DOSTMP)\$(*B).out |
60 @diff test.out $*.ok & if errorlevel 1 \ | 60 @diff test.out $*.ok & if errorlevel 1 \ |
61 ( move /y test.out $*.failed > nul \ | 61 ( move /y test.out $*.failed > nul \ |
62 & del $(DOSTMP)\$(*B).out \ | 62 & del $(DOSTMP)\$(*B).out \ |
63 & echo $* FAILED >> test.log ) \ | 63 & echo $* FAILED >> test.log ) \ |
102 benchmark: | 102 benchmark: |
103 bench_re_freeze.out | 103 bench_re_freeze.out |
104 | 104 |
105 bench_re_freeze.out: bench_re_freeze.vim | 105 bench_re_freeze.out: bench_re_freeze.vim |
106 -if exist benchmark.out del benchmark.out | 106 -if exist benchmark.out del benchmark.out |
107 $(VIMPROG) -u dos.vim $(NO_PLUGIN) $*.in | 107 $(VIMPROG) -u dos.vim $(NO_INITS) $*.in |
108 @IF EXIST benchmark.out ( type benchmark.out ) | 108 @IF EXIST benchmark.out ( type benchmark.out ) |
109 | 109 |
110 # New style of tests uses Vim script with assert calls. These are easier | 110 # New style of tests uses Vim script with assert calls. These are easier |
111 # to write and a lot easier to read and debug. | 111 # to write and a lot easier to read and debug. |
112 # Limitation: Only works with the +eval feature. | 112 # Limitation: Only works with the +eval feature. |
113 | 113 |
114 newtests: $(NEW_TESTS) | 114 newtests: $(NEW_TESTS) |
115 | 115 |
116 .vim.res: | 116 .vim.res: |
117 @echo "$(VIMPROG)" > vimcmd | 117 @echo "$(VIMPROG)" > vimcmd |
118 $(VIMPROG) -u NONE $(NO_PLUGIN) -S runtest.vim $*.vim | 118 $(VIMPROG) -u NONE $(NO_INITS) -S runtest.vim $*.vim |
119 @del vimcmd | 119 @del vimcmd |
120 | |
121 test_gui.res: test_gui.vim | |
122 @echo "$(VIMPROG)" > vimcmd | |
123 $(VIMPROG) -u NONE $(NO_INITS) -S runtest.vim $< | |
124 @del vimcmd | |
125 | |
126 test_gui_init.res: test_gui_init.vim | |
127 @echo "$(VIMPROG)" > vimcmd | |
128 $(VIMPROG) -u NONE -U gui_init.vim $(NO_PLUGINS) -S runtest.vim $< | |
129 @del vimcmd |