Mercurial > vim
annotate src/testdir/Make_ming.mak @ 10596:b9ddd02d90be
Added tag v8.0.0187 for changeset dbaad101b1e1bdc5e73685a4b6b6abe2bae7b232
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 14 Jan 2017 20:15:05 +0100 |
parents | ed658942a71c |
children | 4e2cdce4576c |
rev | line source |
---|---|
2440
fc695854c33a
Correct comments in testdir makefiles. (John Beckett)
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
1 # |
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 |
1724 | 3 # with sh.exe or zsh.exe in the path or not. |
4 # | |
5 # Author: Bill McCarthy | |
6 # | |
7 # Note that test54 has been removed until it is fixed. | |
8 # | |
9 # Requires a set of Unix tools: echo, diff, etc. | |
10 | |
11 ifneq (sh.exe, $(SHELL)) | |
12 DEL = rm -f | |
7445
e81526d6709f
commit https://github.com/vim/vim/commit/acf92d27c94811e3bd6b84cfd54246e91d44c355
Christian Brabandt <cb@256bit.org>
parents:
7366
diff
changeset
|
13 DELDIR = rm -rf |
1724 | 14 MV = mv |
15 CP = cp | |
6328 | 16 CAT = cat |
1724 | 17 DIRSLASH = / |
18 else | |
19 DEL = del | |
7445
e81526d6709f
commit https://github.com/vim/vim/commit/acf92d27c94811e3bd6b84cfd54246e91d44c355
Christian Brabandt <cb@256bit.org>
parents:
7366
diff
changeset
|
20 DELDIR = rd /s /q |
1724 | 21 MV = rename |
22 CP = copy | |
6328 | 23 CAT = type |
1724 | 24 DIRSLASH = \\ |
25 endif | |
26 | |
27 VIMPROG = ..$(DIRSLASH)vim | |
28 | |
7366
eec1dc8ca160
commit https://github.com/vim/vim/commit/40bbceee2213a6fa8fdc1d3f3920d61fb5370803
Christian Brabandt <cb@256bit.org>
parents:
7356
diff
changeset
|
29 default: vimall |
eec1dc8ca160
commit https://github.com/vim/vim/commit/40bbceee2213a6fa8fdc1d3f3920d61fb5370803
Christian Brabandt <cb@256bit.org>
parents:
7356
diff
changeset
|
30 |
7354
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
31 include Make_all.mak |
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
32 |
1724 | 33 # Omitted: |
34 # test2 "\\tmp" doesn't work. | |
35 # test10 'errorformat' is different | |
36 # test12 can't unlink a swap file | |
37 # test25 uses symbolic link | |
7354
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
38 # test54 doesn't work yet |
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
39 # test97 \{ and \$ are not escaped characters |
1724 | 40 |
7354
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
41 SCRIPTS = $(SCRIPTS_ALL) $(SCRIPTS_MORE1) $(SCRIPTS_MORE4) $(SCRIPTS_WIN32) |
1724 | 42 |
6328 | 43 SCRIPTS_BENCH = bench_re_freeze.out |
44 | |
7356
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
45 # 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
|
46 $(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
|
47 |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
48 .SUFFIXES: .in .out .res .vim |
1724 | 49 |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
50 vimall: fixff $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS_WIN32) newtests |
9786
3089f1d99b9e
commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents:
9303
diff
changeset
|
51 @echo ALL DONE |
1724 | 52 |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
53 nongui: fixff nolog $(SCRIPTS_FIRST) $(SCRIPTS) newtests |
9786
3089f1d99b9e
commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents:
9303
diff
changeset
|
54 @echo ALL DONE |
1724 | 55 |
6328 | 56 benchmark: $(SCRIPTS_BENCH) |
57 | |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
58 small: nolog |
9786
3089f1d99b9e
commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents:
9303
diff
changeset
|
59 @echo ALL DONE |
1724 | 60 |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
61 gui: fixff nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) newtests |
9786
3089f1d99b9e
commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents:
9303
diff
changeset
|
62 @echo ALL DONE |
1724 | 63 |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
64 win32: fixff nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_WIN32) newtests |
9786
3089f1d99b9e
commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents:
9303
diff
changeset
|
65 @echo ALL DONE |
1724 | 66 |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
67 # TODO: find a way to avoid changing the distributed files. |
1724 | 68 fixff: |
8253
1b6a589a0efc
commit https://github.com/vim/vim/commit/49c39ff678e2ba9f7dc280b25368e12084a610cf
Christian Brabandt <cb@256bit.org>
parents:
7645
diff
changeset
|
69 -$(VIMPROG) -u dos.vim $(NO_PLUGIN) "+argdo set ff=dos|upd" +q *.in *.ok |
1b6a589a0efc
commit https://github.com/vim/vim/commit/49c39ff678e2ba9f7dc280b25368e12084a610cf
Christian Brabandt <cb@256bit.org>
parents:
7645
diff
changeset
|
70 -$(VIMPROG) -u dos.vim $(NO_PLUGIN) "+argdo set ff=unix|upd" +q \ |
10351
ed658942a71c
commit https://github.com/vim/vim/commit/3f9ebf32a392a9cae1c3e4b6bf8cecad60e2a22a
Christian Brabandt <cb@256bit.org>
parents:
9786
diff
changeset
|
71 dotest.in test60.ok test_listchars.ok \ |
8821
0bab7b98e930
commit https://github.com/vim/vim/commit/298c65971e884666d57c32bff6b730d517d9dc30
Christian Brabandt <cb@256bit.org>
parents:
8253
diff
changeset
|
72 test_getcwd.ok test_wordcount.ok |
1724 | 73 |
74 clean: | |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
75 -@if exist *.out $(DEL) *.out |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
76 -@if exist *.failed $(DEL) *.failed |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
77 -@if exist *.res $(DEL) *.res |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
78 -@if exist test.in $(DEL) test.in |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
79 -@if exist test.ok $(DEL) test.ok |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
80 -@if exist small.vim $(DEL) small.vim |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
81 -@if exist tiny.vim $(DEL) tiny.vim |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
82 -@if exist mbyte.vim $(DEL) mbyte.vim |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
83 -@if exist mzscheme.vim $(DEL) mzscheme.vim |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
84 -@if exist lua.vim $(DEL) lua.vim |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
85 -@if exist Xdir1 $(DELDIR) Xdir1 |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
86 -@if exist Xfind $(DELDIR) Xfind |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
87 -@if exist X* $(DEL) X* |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
88 -@if exist viminfo $(DEL) viminfo |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
89 -@if exist test.log $(DEL) test.log |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
90 -@if exist messages $(DEL) messages |
1724 | 91 |
92 .in.out: | |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
93 -@if exist $*.ok $(CP) $*.ok test.ok |
8253
1b6a589a0efc
commit https://github.com/vim/vim/commit/49c39ff678e2ba9f7dc280b25368e12084a610cf
Christian Brabandt <cb@256bit.org>
parents:
7645
diff
changeset
|
94 $(VIMPROG) -u dos.vim $(NO_PLUGIN) -s dotest.in $*.in |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
95 @diff test.out $*.ok |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
96 -@if exist $*.out $(DEL) $*.out |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
97 @$(MV) test.out $*.out |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
98 -@if exist Xdir1 $(DELDIR) Xdir1 |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
99 -@if exist Xfind $(DELDIR) Xfind |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
100 -@if exist X* $(DEL) X* |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
101 -@if exist test.ok $(DEL) test.ok |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
102 -@if exist viminfo $(DEL) viminfo |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
103 |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
104 nolog: |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
105 -@if exist test.log $(DEL) test.log |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
106 -@if exist messages $(DEL) messages |
6328 | 107 |
108 bench_re_freeze.out: bench_re_freeze.vim | |
109 -$(DEL) benchmark.out | |
8253
1b6a589a0efc
commit https://github.com/vim/vim/commit/49c39ff678e2ba9f7dc280b25368e12084a610cf
Christian Brabandt <cb@256bit.org>
parents:
7645
diff
changeset
|
110 $(VIMPROG) -u dos.vim $(NO_PLUGIN) $*.in |
6328 | 111 $(CAT) benchmark.out |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
112 |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
113 # New style of tests uses Vim script with assert calls. These are easier |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
114 # to write and a lot easier to read and debug. |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
115 # Limitation: Only works with the +eval feature. |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
116 |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
117 newtests: $(NEW_TESTS) |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
118 |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
119 .vim.res: |
9786
3089f1d99b9e
commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents:
9303
diff
changeset
|
120 @echo "$(VIMPROG)" > vimcmd |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
121 $(VIMPROG) -u NONE $(NO_PLUGIN) -S runtest.vim $*.vim |
9786
3089f1d99b9e
commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents:
9303
diff
changeset
|
122 @$(DEL) vimcmd |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
123 |