annotate src/testdir/Make_dos.mak @ 7366:eec1dc8ca160 v7.4.988

commit https://github.com/vim/vim/commit/40bbceee2213a6fa8fdc1d3f3920d61fb5370803 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 28 22:24:41 2015 +0100 patch 7.4.988 Problem: Default test target is test49.out. Solution: Add a build rule before including Make_all.mak.
author Christian Brabandt <cb@256bit.org>
date Mon, 28 Dec 2015 22:30:04 +0100
parents 16c67ab8eafd
children a6c23c3c5880
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 # Requires a set of Unix tools: echo, diff, etc.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 VIMPROG = ..\\vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
7366
eec1dc8ca160 commit https://github.com/vim/vim/commit/40bbceee2213a6fa8fdc1d3f3920d61fb5370803
Christian Brabandt <cb@256bit.org>
parents: 7362
diff changeset
8 default: nongui
eec1dc8ca160 commit https://github.com/vim/vim/commit/40bbceee2213a6fa8fdc1d3f3920d61fb5370803
Christian Brabandt <cb@256bit.org>
parents: 7362
diff changeset
9
7354
81dc9e30aad6 commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents: 7350
diff changeset
10 !include Make_all.mak
81dc9e30aad6 commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents: 7350
diff changeset
11
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 # Omitted:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 # test2 "\\tmp" doesn't work.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 # test10 'errorformat' is different
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 # test12 can't unlink a swap file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 # test25 uses symbolic link
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 # test27 can't edit file with "*" in file name
7362
16c67ab8eafd commit https://github.com/vim/vim/commit/da9888a3f0118ce1ce5acbdcf4720602c2de2a3b
Christian Brabandt <cb@256bit.org>
parents: 7356
diff changeset
18 # test49 fails in various ways
5116
6cabac58f26f updated for version 7.3.1301
Bram Moolenaar <bram@vim.org>
parents: 5104
diff changeset
19 # test97 \{ and \$ are not escaped characters.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
7354
81dc9e30aad6 commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents: 7350
diff changeset
21 SCRIPTS = $(SCRIPTS_ALL) $(SCRIPTS_MORE1) $(SCRIPTS_MORE3) $(SCRIPTS_MORE4)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
7356
f0eb9aa9eb32 commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents: 7354
diff changeset
23 TEST_OUTFILES = $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_WIN32) $(SCRIPTS_GUI)
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
24 DOSTMP = dostmp
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
25 DOSTMP_OUTFILES = $(TEST_OUTFILES:test=dostmp\test)
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
26 DOSTMP_INFILES = $(DOSTMP_OUTFILES:.out=.in)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 .SUFFIXES: .in .out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
7356
f0eb9aa9eb32 commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents: 7354
diff changeset
30 # 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
31 $(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
32
f0eb9aa9eb32 commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents: 7354
diff changeset
33 nongui: nolog $(SCRIPTS_FIRST) $(SCRIPTS) report
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
34
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
35 small: nolog report
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
36
7356
f0eb9aa9eb32 commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents: 7354
diff changeset
37 gui: nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) report
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
7356
f0eb9aa9eb32 commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents: 7354
diff changeset
39 win32: nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_WIN32) report
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
41 # Copy the input files to dostmp, changing the fileformat to dos.
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
42 $(DOSTMP_INFILES): $(*B).in
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
43 if not exist $(DOSTMP)\NUL md $(DOSTMP)
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
44 if exist $@ del $@
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
45 $(VIMPROG) -u dos.vim --noplugin "+set ff=dos|f $@|wq" $(*B).in
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
47 # For each input file dostmp/test99.in run the tests.
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
48 # This moves test99.in to test99.in.bak temporarily.
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
49 $(TEST_OUTFILES): $(DOSTMP)\$(*B).in
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
50 -@if exist test.out DEL test.out
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
51 move $(*B).in $(*B).in.bak
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
52 copy $(DOSTMP)\$(*B).in $(*B).in
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
53 copy $(*B).ok test.ok
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
54 $(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $(*B).in
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
55 -@if exist test.out MOVE /y test.out $(DOSTMP)\$(*B).out
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
56 -@if exist $(*B).in.bak move /y $(*B).in.bak $(*B).in
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
57 -@del X*
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
58 -@if exist test.ok del test.ok
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
59 -@if exist Xdir1 rd /s /q Xdir1
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
60 -@if exist Xfind rd /s /q Xfind
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
61 -@if exist viminfo del viminfo
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
62 $(VIMPROG) -u dos.vim --noplugin "+set ff=unix|f test.out|wq" \
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
63 $(DOSTMP)\$(*B).out
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
64 @diff test.out $*.ok & if errorlevel 1 \
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
65 ( move /y test.out $*.failed \
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
66 & del $(DOSTMP)\$(*B).out \
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
67 & echo $* FAILED >> test.log ) \
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
68 else ( move /y test.out $*.out )
49
10286edc333c updated for version 7.0028
vimboss
parents: 40
diff changeset
69
4934
81e623ff2e55 updated for version 7.3.1212
Bram Moolenaar <bram@vim.org>
parents: 4817
diff changeset
70 report:
81e623ff2e55 updated for version 7.3.1212
Bram Moolenaar <bram@vim.org>
parents: 4817
diff changeset
71 @echo ""
81e623ff2e55 updated for version 7.3.1212
Bram Moolenaar <bram@vim.org>
parents: 4817
diff changeset
72 @echo Test results:
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
73 @if exist test.log ( type test.log & echo TEST FAILURE & exit /b 1 ) \
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
74 else ( echo ALL DONE )
4934
81e623ff2e55 updated for version 7.3.1212
Bram Moolenaar <bram@vim.org>
parents: 4817
diff changeset
75
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 clean:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 -del *.out
4946
d10ede931224 updated for version 7.3.1218
Bram Moolenaar <bram@vim.org>
parents: 4934
diff changeset
78 -del *.failed
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
79 -if exist $(DOSTMP) rd /s /q $(DOSTMP)
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
80 -if exist test.in del test.in
1358
9656552c468d updated for version 7.1-072
vimboss
parents: 1327
diff changeset
81 -if exist test.ok del test.ok
9656552c468d updated for version 7.1-072
vimboss
parents: 1327
diff changeset
82 -if exist small.vim del small.vim
9656552c468d updated for version 7.1-072
vimboss
parents: 1327
diff changeset
83 -if exist tiny.vim del tiny.vim
9656552c468d updated for version 7.1-072
vimboss
parents: 1327
diff changeset
84 -if exist mbyte.vim del mbyte.vim
2101
8ae4de2d02af updated for version 7.2.384
Bram Moolenaar <bram@zimbu.org>
parents: 2050
diff changeset
85 -if exist mzscheme.vim del mzscheme.vim
3855
1cc37b8cfaa1 updated for version 7.3.684
Bram Moolenaar <bram@vim.org>
parents: 3618
diff changeset
86 -if exist lua.vim del lua.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 -del X*
4946
d10ede931224 updated for version 7.3.1218
Bram Moolenaar <bram@vim.org>
parents: 4934
diff changeset
88 -if exist Xdir1 rd /s /q Xdir1
d10ede931224 updated for version 7.3.1218
Bram Moolenaar <bram@vim.org>
parents: 4934
diff changeset
89 -if exist Xfind rd /s /q Xfind
1358
9656552c468d updated for version 7.1-072
vimboss
parents: 1327
diff changeset
90 -if exist viminfo del viminfo
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
91 -if exist test.log del test.log
6330
24ee7a7a26b1 updated for version 7.4.498
Bram Moolenaar <bram@vim.org>
parents: 6328
diff changeset
92 -if exist benchmark.out del benchmark.out
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
4934
81e623ff2e55 updated for version 7.3.1212
Bram Moolenaar <bram@vim.org>
parents: 4817
diff changeset
94 nolog:
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
95 -if exist test.log del test.log
6328
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
96
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
97 benchmark:
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
98 bench_re_freeze.out
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
99
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
100 bench_re_freeze.out: bench_re_freeze.vim
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
101 -if exist benchmark.out del benchmark.out
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
102 $(VIMPROG) -u dos.vim -U NONE --noplugin $*.in
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
103 @IF EXIST benchmark.out ( type benchmark.out )