Mercurial > vim
annotate src/testdir/Make_dos.mak @ 7356:f0eb9aa9eb32 v7.4.983
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 28 16:26:45 2015 +0100
patch 7.4.983
Problem: Executing one test after "make testclean" doesn't work.
Solution: Add a dependency on test1.out.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 28 Dec 2015 16:30:04 +0100 |
parents | 81dc9e30aad6 |
children | 16c67ab8eafd |
rev | line source |
---|---|
7 | 1 # |
2440
fc695854c33a
Correct comments in testdir makefiles. (John Beckett)
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
2 # Makefile to run all tests for Vim, on Dos-like machines. |
7 | 3 # |
4 # Requires a set of Unix tools: echo, diff, etc. | |
5 | |
6 VIMPROG = ..\\vim | |
7 | |
7354
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
8 !include Make_all.mak |
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
9 |
7 | 10 # Omitted: |
11 # test2 "\\tmp" doesn't work. | |
12 # test10 'errorformat' is different | |
13 # test12 can't unlink a swap file | |
14 # test25 uses symbolic link | |
15 # test27 can't edit file with "*" in file name | |
5116
6cabac58f26f
updated for version 7.3.1301
Bram Moolenaar <bram@vim.org>
parents:
5104
diff
changeset
|
16 # test97 \{ and \$ are not escaped characters. |
7 | 17 |
7354
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
18 SCRIPTS = $(SCRIPTS_ALL) $(SCRIPTS_MORE1) $(SCRIPTS_MORE3) $(SCRIPTS_MORE4) |
7 | 19 |
7356
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
20 TEST_OUTFILES = $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_WIN32) $(SCRIPTS_GUI) |
6643 | 21 DOSTMP = dostmp |
22 DOSTMP_OUTFILES = $(TEST_OUTFILES:test=dostmp\test) | |
23 DOSTMP_INFILES = $(DOSTMP_OUTFILES:.out=.in) | |
7 | 24 |
25 .SUFFIXES: .in .out | |
26 | |
7356
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
27 # Must run test1 first to create small.vim. |
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
28 $(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS_WIN32) $(NEW_TESTS): $(SCRIPTS_FIRST) |
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
29 |
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
30 nongui: nolog $(SCRIPTS_FIRST) $(SCRIPTS) report |
6643 | 31 |
32 small: nolog report | |
33 | |
7356
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
34 gui: nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) report |
7 | 35 |
7356
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
36 win32: nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_WIN32) report |
7 | 37 |
6643 | 38 # Copy the input files to dostmp, changing the fileformat to dos. |
39 $(DOSTMP_INFILES): $(*B).in | |
40 if not exist $(DOSTMP)\NUL md $(DOSTMP) | |
41 if exist $@ del $@ | |
42 $(VIMPROG) -u dos.vim --noplugin "+set ff=dos|f $@|wq" $(*B).in | |
7 | 43 |
6643 | 44 # For each input file dostmp/test99.in run the tests. |
45 # This moves test99.in to test99.in.bak temporarily. | |
46 $(TEST_OUTFILES): $(DOSTMP)\$(*B).in | |
47 -@if exist test.out DEL test.out | |
48 move $(*B).in $(*B).in.bak | |
49 copy $(DOSTMP)\$(*B).in $(*B).in | |
50 copy $(*B).ok test.ok | |
51 $(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $(*B).in | |
52 -@if exist test.out MOVE /y test.out $(DOSTMP)\$(*B).out | |
53 -@if exist $(*B).in.bak move /y $(*B).in.bak $(*B).in | |
54 -@del X* | |
55 -@if exist test.ok del test.ok | |
56 -@if exist Xdir1 rd /s /q Xdir1 | |
57 -@if exist Xfind rd /s /q Xfind | |
58 -@if exist viminfo del viminfo | |
59 $(VIMPROG) -u dos.vim --noplugin "+set ff=unix|f test.out|wq" \ | |
60 $(DOSTMP)\$(*B).out | |
61 @diff test.out $*.ok & if errorlevel 1 \ | |
62 ( move /y test.out $*.failed \ | |
63 & del $(DOSTMP)\$(*B).out \ | |
64 & echo $* FAILED >> test.log ) \ | |
65 else ( move /y test.out $*.out ) | |
49 | 66 |
4934
81e623ff2e55
updated for version 7.3.1212
Bram Moolenaar <bram@vim.org>
parents:
4817
diff
changeset
|
67 report: |
81e623ff2e55
updated for version 7.3.1212
Bram Moolenaar <bram@vim.org>
parents:
4817
diff
changeset
|
68 @echo "" |
81e623ff2e55
updated for version 7.3.1212
Bram Moolenaar <bram@vim.org>
parents:
4817
diff
changeset
|
69 @echo Test results: |
6643 | 70 @if exist test.log ( type test.log & echo TEST FAILURE & exit /b 1 ) \ |
71 else ( echo ALL DONE ) | |
4934
81e623ff2e55
updated for version 7.3.1212
Bram Moolenaar <bram@vim.org>
parents:
4817
diff
changeset
|
72 |
7 | 73 clean: |
74 -del *.out | |
4946
d10ede931224
updated for version 7.3.1218
Bram Moolenaar <bram@vim.org>
parents:
4934
diff
changeset
|
75 -del *.failed |
6643 | 76 -if exist $(DOSTMP) rd /s /q $(DOSTMP) |
77 -if exist test.in del test.in | |
1358 | 78 -if exist test.ok del test.ok |
79 -if exist small.vim del small.vim | |
80 -if exist tiny.vim del tiny.vim | |
81 -if exist mbyte.vim del mbyte.vim | |
2101
8ae4de2d02af
updated for version 7.2.384
Bram Moolenaar <bram@zimbu.org>
parents:
2050
diff
changeset
|
82 -if exist mzscheme.vim del mzscheme.vim |
3855 | 83 -if exist lua.vim del lua.vim |
7 | 84 -del X* |
4946
d10ede931224
updated for version 7.3.1218
Bram Moolenaar <bram@vim.org>
parents:
4934
diff
changeset
|
85 -if exist Xdir1 rd /s /q Xdir1 |
d10ede931224
updated for version 7.3.1218
Bram Moolenaar <bram@vim.org>
parents:
4934
diff
changeset
|
86 -if exist Xfind rd /s /q Xfind |
1358 | 87 -if exist viminfo del viminfo |
6643 | 88 -if exist test.log del test.log |
6330 | 89 -if exist benchmark.out del benchmark.out |
7 | 90 |
4934
81e623ff2e55
updated for version 7.3.1212
Bram Moolenaar <bram@vim.org>
parents:
4817
diff
changeset
|
91 nolog: |
6643 | 92 -if exist test.log del test.log |
6328 | 93 |
94 benchmark: | |
95 bench_re_freeze.out | |
96 | |
97 bench_re_freeze.out: bench_re_freeze.vim | |
98 -if exist benchmark.out del benchmark.out | |
99 $(VIMPROG) -u dos.vim -U NONE --noplugin $*.in | |
100 @IF EXIST benchmark.out ( type benchmark.out ) |