Mercurial > vim
annotate src/testdir/Make_ming.mak @ 21741:baccf9e06efe v8.2.1420
patch 8.2.1420: test 49 is old style
Commit: https://github.com/vim/vim/commit/f7c4d83609acdfe0e4d0fec9413697ac97c0c3f9
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 11 20:42:19 2020 +0200
patch 8.2.1420: test 49 is old style
Problem: Test 49 is old style.
Solution: Convert remaining parts to new style. Remove obsolete items.
(Yegappan Lakshmanan, closes #6683)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 11 Aug 2020 20:45:05 +0200 |
parents | dc1c26547a42 |
children | 30bdd2e4a6f9 |
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 # Requires a set of Unix tools: echo, diff, etc. | |
8 | |
9 ifneq (sh.exe, $(SHELL)) | |
10 DEL = rm -f | |
7445
e81526d6709f
commit https://github.com/vim/vim/commit/acf92d27c94811e3bd6b84cfd54246e91d44c355
Christian Brabandt <cb@256bit.org>
parents:
7366
diff
changeset
|
11 DELDIR = rm -rf |
1724 | 12 MV = mv |
13 CP = cp | |
6328 | 14 CAT = cat |
1724 | 15 DIRSLASH = / |
16 else | |
17 DEL = del | |
7445
e81526d6709f
commit https://github.com/vim/vim/commit/acf92d27c94811e3bd6b84cfd54246e91d44c355
Christian Brabandt <cb@256bit.org>
parents:
7366
diff
changeset
|
18 DELDIR = rd /s /q |
1724 | 19 MV = rename |
20 CP = copy | |
6328 | 21 CAT = type |
1724 | 22 DIRSLASH = \\ |
23 endif | |
24 | |
25 VIMPROG = ..$(DIRSLASH)vim | |
26 | |
7366
eec1dc8ca160
commit https://github.com/vim/vim/commit/40bbceee2213a6fa8fdc1d3f3920d61fb5370803
Christian Brabandt <cb@256bit.org>
parents:
7356
diff
changeset
|
27 default: vimall |
eec1dc8ca160
commit https://github.com/vim/vim/commit/40bbceee2213a6fa8fdc1d3f3920d61fb5370803
Christian Brabandt <cb@256bit.org>
parents:
7356
diff
changeset
|
28 |
7354
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
29 include Make_all.mak |
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
30 |
20120
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
18066
diff
changeset
|
31 SCRIPTS_BENCH = test_bench_regexp.res |
6328 | 32 |
7356
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
33 # Must run test1 first to create small.vim. |
21741
baccf9e06efe
patch 8.2.1420: test 49 is old style
Bram Moolenaar <Bram@vim.org>
parents:
21532
diff
changeset
|
34 $(NEW_TESTS_RES): $(SCRIPTS_FIRST) |
7356
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
35 |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
36 .SUFFIXES: .in .out .res .vim |
1724 | 37 |
21741
baccf9e06efe
patch 8.2.1420: test 49 is old style
Bram Moolenaar <Bram@vim.org>
parents:
21532
diff
changeset
|
38 vimall: fixff $(SCRIPTS_FIRST) newtests |
9786
3089f1d99b9e
commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents:
9303
diff
changeset
|
39 @echo ALL DONE |
1724 | 40 |
21741
baccf9e06efe
patch 8.2.1420: test 49 is old style
Bram Moolenaar <Bram@vim.org>
parents:
21532
diff
changeset
|
41 nongui: fixff nolog $(SCRIPTS_FIRST) newtests |
9786
3089f1d99b9e
commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents:
9303
diff
changeset
|
42 @echo ALL DONE |
1724 | 43 |
6328 | 44 benchmark: $(SCRIPTS_BENCH) |
45 | |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
46 small: nolog |
9786
3089f1d99b9e
commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents:
9303
diff
changeset
|
47 @echo ALL DONE |
1724 | 48 |
21741
baccf9e06efe
patch 8.2.1420: test 49 is old style
Bram Moolenaar <Bram@vim.org>
parents:
21532
diff
changeset
|
49 gui: fixff nolog $(SCRIPTS_FIRST) newtests |
9786
3089f1d99b9e
commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents:
9303
diff
changeset
|
50 @echo ALL DONE |
1724 | 51 |
21741
baccf9e06efe
patch 8.2.1420: test 49 is old style
Bram Moolenaar <Bram@vim.org>
parents:
21532
diff
changeset
|
52 win32: fixff nolog $(SCRIPTS_FIRST) newtests |
9786
3089f1d99b9e
commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents:
9303
diff
changeset
|
53 @echo ALL DONE |
1724 | 54 |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
55 # TODO: find a way to avoid changing the distributed files. |
1724 | 56 fixff: |
10944
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
57 -$(VIMPROG) -u dos.vim $(NO_INITS) "+argdo set ff=dos|upd" +q *.in *.ok |
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
58 -$(VIMPROG) -u dos.vim $(NO_INITS) "+argdo set ff=unix|upd" +q \ |
13022
71109531c516
patch 8.0.1387: wordcount test is old style
Christian Brabandt <cb@256bit.org>
parents:
12851
diff
changeset
|
59 dotest.in |
1724 | 60 |
61 clean: | |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
62 -@if exist *.out $(DEL) *.out |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
63 -@if exist *.failed $(DEL) *.failed |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
64 -@if exist *.res $(DEL) *.res |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
65 -@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
|
66 -@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
|
67 -@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
|
68 -@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
|
69 -@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
|
70 -@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
|
71 -@if exist Xdir1 $(DELDIR) Xdir1 |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
72 -@if exist Xfind $(DELDIR) Xfind |
11858
042e634bb8d9
patch 8.0.0809: MS-Windows: tests hang
Christian Brabandt <cb@256bit.org>
parents:
11651
diff
changeset
|
73 -@if exist XfakeHOME $(DELDIR) XfakeHOME |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
74 -@if exist X* $(DEL) X* |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
75 -@if exist viminfo $(DEL) viminfo |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
76 -@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
|
77 -@if exist messages $(DEL) messages |
11079
50459aeb4773
patch 8.0.0428: git and hg see new files after running tests
Christian Brabandt <cb@256bit.org>
parents:
10944
diff
changeset
|
78 -@if exist opt_test.vim $(DEL) opt_test.vim |
1724 | 79 |
15587
8ba0e158970d
patch 8.1.0801: MinGW: no hint that tests fail because of small terminal
Bram Moolenaar <Bram@vim.org>
parents:
15432
diff
changeset
|
80 test1.out: test1.in |
8ba0e158970d
patch 8.1.0801: MinGW: no hint that tests fail because of small terminal
Bram Moolenaar <Bram@vim.org>
parents:
15432
diff
changeset
|
81 -@if exist wrongtermsize $(DEL) wrongtermsize |
8ba0e158970d
patch 8.1.0801: MinGW: no hint that tests fail because of small terminal
Bram Moolenaar <Bram@vim.org>
parents:
15432
diff
changeset
|
82 $(VIMPROG) -u dos.vim $(NO_INITS) -s dotest.in test1.in |
8ba0e158970d
patch 8.1.0801: MinGW: no hint that tests fail because of small terminal
Bram Moolenaar <Bram@vim.org>
parents:
15432
diff
changeset
|
83 -@if exist wrongtermsize ( \ |
8ba0e158970d
patch 8.1.0801: MinGW: no hint that tests fail because of small terminal
Bram Moolenaar <Bram@vim.org>
parents:
15432
diff
changeset
|
84 echo Vim window too small- must be 80x25 or larger && exit 1 \ |
8ba0e158970d
patch 8.1.0801: MinGW: no hint that tests fail because of small terminal
Bram Moolenaar <Bram@vim.org>
parents:
15432
diff
changeset
|
85 ) |
8ba0e158970d
patch 8.1.0801: MinGW: no hint that tests fail because of small terminal
Bram Moolenaar <Bram@vim.org>
parents:
15432
diff
changeset
|
86 -@if exist test.out $(DEL) test.out |
8ba0e158970d
patch 8.1.0801: MinGW: no hint that tests fail because of small terminal
Bram Moolenaar <Bram@vim.org>
parents:
15432
diff
changeset
|
87 -@if exist viminfo $(DEL) viminfo |
8ba0e158970d
patch 8.1.0801: MinGW: no hint that tests fail because of small terminal
Bram Moolenaar <Bram@vim.org>
parents:
15432
diff
changeset
|
88 |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
89 nolog: |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
90 -@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
|
91 -@if exist messages $(DEL) messages |
6328 | 92 |
20120
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
18066
diff
changeset
|
93 test_bench_regexp.res: test_bench_regexp.vim |
6328 | 94 -$(DEL) benchmark.out |
20120
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
18066
diff
changeset
|
95 @echo $(VIMPROG) > vimcmd |
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
18066
diff
changeset
|
96 $(VIMPROG) -u NONE $(NO_INITS) -S runtest.vim $*.vim |
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
18066
diff
changeset
|
97 @$(DEL) vimcmd |
6328 | 98 $(CAT) benchmark.out |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
99 |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
100 # 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
|
101 # 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
|
102 # 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
|
103 |
15430
d94901eeb762
patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents:
14339
diff
changeset
|
104 newtests: $(NEW_TESTS_RES) |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
105 |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
106 .vim.res: |
12606
4ecdfa7b4e62
patch 8.0.1181: tests using Vim command fail on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11858
diff
changeset
|
107 @echo $(VIMPROG) > vimcmd |
10944
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
108 $(VIMPROG) -u NONE $(NO_INITS) -S runtest.vim $*.vim |
9786
3089f1d99b9e
commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents:
9303
diff
changeset
|
109 @$(DEL) vimcmd |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
110 |
10944
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
111 test_gui.res: test_gui.vim |
12606
4ecdfa7b4e62
patch 8.0.1181: tests using Vim command fail on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11858
diff
changeset
|
112 @echo $(VIMPROG) > vimcmd |
10944
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
113 $(VIMPROG) -u NONE $(NO_INITS) -S runtest.vim $< |
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
114 @$(DEL) vimcmd |
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
115 |
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
116 test_gui_init.res: test_gui_init.vim |
12606
4ecdfa7b4e62
patch 8.0.1181: tests using Vim command fail on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11858
diff
changeset
|
117 @echo $(VIMPROG) > vimcmd |
11138
003e7ade488f
patch 8.0.0456: typo in MinGW test makefile
Christian Brabandt <cb@256bit.org>
parents:
11119
diff
changeset
|
118 $(VIMPROG) -u gui_preinit.vim -U gui_init.vim $(NO_PLUGINS) -S runtest.vim $< |
10944
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
119 @$(DEL) vimcmd |
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
120 |
15432
b10ce9e77128
patch 8.1.0724: build for MinGW fails
Bram Moolenaar <Bram@vim.org>
parents:
15430
diff
changeset
|
121 test_options.res test_alot.res: opt_test.vim |
b10ce9e77128
patch 8.1.0724: build for MinGW fails
Bram Moolenaar <Bram@vim.org>
parents:
15430
diff
changeset
|
122 |
18066
8e10cabcde8a
patch 8.1.2028: options test script does not work
Bram Moolenaar <Bram@vim.org>
parents:
15587
diff
changeset
|
123 opt_test.vim: ../optiondefs.h gen_opt_test.vim |
8e10cabcde8a
patch 8.1.2028: options test script does not work
Bram Moolenaar <Bram@vim.org>
parents:
15587
diff
changeset
|
124 $(VIMPROG) -u NONE -S gen_opt_test.vim --noplugin --not-a-term ../optiondefs.h |