annotate src/testdir/Make_ming.mak @ 8921:c3e7cc135754 v7.4.1747

commit https://github.com/vim/vim/commit/fe4b18640656ddea41f60cf7a76956c9cc5494d6 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 15 21:47:54 2016 +0200 patch 7.4.1747 Problem: Coverity: missing check for NULL pointer. Solution: Check for out of memory.
author Christian Brabandt <cb@256bit.org>
date Fri, 15 Apr 2016 22:00:07 +0200
parents 0bab7b98e930
children 1cc29584ef6d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
3 # with sh.exe or zsh.exe in the path or not.
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
4 #
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
5 # Author: Bill McCarthy
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
6 #
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
7 # Note that test54 has been removed until it is fixed.
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
8 #
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
9 # Requires a set of Unix tools: echo, diff, etc.
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
10
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
11 ifneq (sh.exe, $(SHELL))
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
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
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
14 MV = mv
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
15 CP = cp
6328
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
16 CAT = cat
1724
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
17 DIRSLASH = /
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
18 else
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
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
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
21 MV = rename
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
22 CP = copy
6328
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
23 CAT = type
1724
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
24 DIRSLASH = \\
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
25 endif
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
26
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
27 VIMPROG = ..$(DIRSLASH)vim
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
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
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
33 # Omitted:
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
34 # test2 "\\tmp" doesn't work.
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
35 # test10 'errorformat' is different
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
36 # test12 can't unlink a swap file
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
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
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
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
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
42
6328
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
43 SCRIPTS_BENCH = bench_re_freeze.out
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
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
1724
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
48 .SUFFIXES: .in .out
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
49
7356
f0eb9aa9eb32 commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents: 7354
diff changeset
50 vimall: fixff $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS_WIN32)
1724
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
51 echo ALL DONE
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
52
7356
f0eb9aa9eb32 commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents: 7354
diff changeset
53 nongui: fixff $(SCRIPTS_FIRST) $(SCRIPTS)
1724
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
54 echo ALL DONE
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
55
6328
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
56 benchmark: $(SCRIPTS_BENCH)
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
57
1724
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
58 small:
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
59 echo ALL DONE
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
60
7356
f0eb9aa9eb32 commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents: 7354
diff changeset
61 gui: fixff $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI)
1724
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
62 echo ALL DONE
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
63
7356
f0eb9aa9eb32 commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents: 7354
diff changeset
64 win32: fixff $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_WIN32)
1724
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
65 echo ALL DONE
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
66
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
67 fixff:
8821
0bab7b98e930 commit https://github.com/vim/vim/commit/298c65971e884666d57c32bff6b730d517d9dc30
Christian Brabandt <cb@256bit.org>
parents: 8253
diff changeset
68 # TODO: find a way to avoid changing the distributed files.
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 \
8821
0bab7b98e930 commit https://github.com/vim/vim/commit/298c65971e884666d57c32bff6b730d517d9dc30
Christian Brabandt <cb@256bit.org>
parents: 8253
diff changeset
71 dotest.in test60.ok test71.ok test74.ok test_listchars.ok \
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
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
73
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
74 clean:
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
75 -$(DEL) *.out
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
76 -$(DEL) test.ok
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
77 -$(DEL) small.vim
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
78 -$(DEL) tiny.vim
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
79 -$(DEL) mbyte.vim
2050
afcf9db31561 updated for version 7.2.336
Bram Moolenaar <bram@zimbu.org>
parents: 2005
diff changeset
80 -$(DEL) mzscheme.vim
3855
1cc37b8cfaa1 updated for version 7.3.684
Bram Moolenaar <bram@vim.org>
parents: 3618
diff changeset
81 -$(DEL) lua.vim
7445
e81526d6709f commit https://github.com/vim/vim/commit/acf92d27c94811e3bd6b84cfd54246e91d44c355
Christian Brabandt <cb@256bit.org>
parents: 7366
diff changeset
82 -$(DELDIR) Xdir1
e81526d6709f commit https://github.com/vim/vim/commit/acf92d27c94811e3bd6b84cfd54246e91d44c355
Christian Brabandt <cb@256bit.org>
parents: 7366
diff changeset
83 -$(DELDIR) Xfind
1724
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
84 -$(DEL) X*
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
85 -$(DEL) viminfo
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
86
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
87 .in.out:
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
88 $(CP) $*.ok test.ok
8253
1b6a589a0efc commit https://github.com/vim/vim/commit/49c39ff678e2ba9f7dc280b25368e12084a610cf
Christian Brabandt <cb@256bit.org>
parents: 7645
diff changeset
89 $(VIMPROG) -u dos.vim $(NO_PLUGIN) -s dotest.in $*.in
1724
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
90 diff test.out $*.ok
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
91 -$(DEL) $*.out
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
92 $(MV) test.out $*.out
7445
e81526d6709f commit https://github.com/vim/vim/commit/acf92d27c94811e3bd6b84cfd54246e91d44c355
Christian Brabandt <cb@256bit.org>
parents: 7366
diff changeset
93 -$(DELDIR) Xdir1
e81526d6709f commit https://github.com/vim/vim/commit/acf92d27c94811e3bd6b84cfd54246e91d44c355
Christian Brabandt <cb@256bit.org>
parents: 7366
diff changeset
94 -$(DELDIR) Xfind
1724
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
95 -$(DEL) X*
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
96 -$(DEL) test.ok
680834cb19eb updated for version 7.2-022
vimboss
parents:
diff changeset
97 -$(DEL) viminfo
6328
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
98
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
99 bench_re_freeze.out: bench_re_freeze.vim
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
100 -$(DEL) benchmark.out
8253
1b6a589a0efc commit https://github.com/vim/vim/commit/49c39ff678e2ba9f7dc280b25368e12084a610cf
Christian Brabandt <cb@256bit.org>
parents: 7645
diff changeset
101 $(VIMPROG) -u dos.vim $(NO_PLUGIN) $*.in
6328
adfbffe1e642 updated for version 7.4.497
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
102 $(CAT) benchmark.out