Mercurial > vim
annotate src/testdir/Make_vms.mms @ 7354:81dc9e30aad6 v7.4.982
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 28 16:01:26 2015 +0100
patch 7.4.982
Problem: Keeping the list of tests updated is a hassle.
Solution: Move the list to a separate file, so that it only needs to be
udpated in one place.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 28 Dec 2015 16:15:05 +0100 |
parents | 5ac8ee7bf4ff |
children | f0eb9aa9eb32 |
rev | line source |
---|---|
7 | 1 # |
2 # Makefile to run all tests for Vim on VMS | |
3 # | |
4 # Authors: Zoltan Arpadffy, <arpadffy@polarhome.com> | |
5 # Sandor Kopanyi, <sandor.kopanyi@mailbox.hu> | |
6 # | |
7354
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
7 # Last change: 2015 Dec 28 |
7 | 8 # |
1709 | 9 # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64. |
7 | 10 # Edit the lines in the Configuration section below to select. |
11 # | |
12 # Execute with: | |
13 # mms/descrip=Make_vms.mms | |
14 # Cleanup with: | |
15 # mms/descrip=Make_vms.mms clean | |
16 # | |
17 # Make files are MMK compatible. | |
18 # | |
19 # NOTE: You can run this script just in X/Window environment. It will | |
20 # create a new terminals, therefore you have to set up your DISPLAY | |
21 # logical. More info in VMS documentation or with: help set disp. | |
22 # | |
23 ####################################################################### | |
24 # Configuration section. | |
25 ####################################################################### | |
26 | |
27 # Uncomment if you want tests in GUI mode. Terminal mode is default. | |
28 # WANT_GUI = YES | |
29 | |
30 # Comment out if you want to run Unix specific tests as well, but please | |
31 # be aware, that on OpenVMS will fail, because of cat, rm, etc commands | |
32 # and directory handling. | |
33 # WANT_UNIX = YES | |
34 | |
1709 | 35 # Comment out if you want to run Win32 specific tests as well, but please |
36 # be aware, that on OpenVMS will fail, because of cat, rm, etc commands | |
37 # and directory handling. | |
38 # WANT_WIN = YES | |
39 | |
40 # Comment out if you want to run spell checker tests. | |
41 # They fail because VMS does not support file names. | |
42 # WANT_SPELL = YES | |
43 | |
5704 | 44 # Comment out if you want to run mzschema tests. |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
45 # It fails because VMS does not support this feature yet. |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
46 # WANT_MZSCH = YES |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
47 |
6398 | 48 # Comment out if you have ODS-5 file system |
5704 | 49 # HAVE_ODS5 = YES |
50 | |
7 | 51 # Comment out if you have gzip on your system |
52 # HAVE_GZIP = YES | |
53 | |
54 # Comment out if you have GNU compatible diff on your system | |
55 # HAVE_GDIFF = YES | |
56 | |
6398 | 57 # Comment out if you have GNU compatible cksum on your system |
5704 | 58 # HAVE_CKSUM = YES |
59 | |
6398 | 60 # Comment out if you have ICONV support |
5704 | 61 # HAVE_ICONV = YES |
62 | |
63 # Comment out if you have LUA support | |
64 # HAVE_LUA = YES | |
65 | |
66 # Comment out if you have PYTHON support | |
67 # HAVE_PYTHON = YES | |
68 | |
7 | 69 ####################################################################### |
70 # End of configuration section. | |
71 # | |
72 # Please, do not change anything below without programming experience. | |
73 ####################################################################### | |
74 | |
75 VIMPROG = <->vim.exe | |
76 | |
7354
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
77 # This probably doesn't work, please fix. |
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
78 .INCLUDE Make_all.mak |
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
79 |
7 | 80 .SUFFIXES : .out .in |
81 | |
7354
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
82 SCRIPT = $(SCRIPTS_ALL) $(SCRIPTS_MORE3) |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
83 |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
84 # Known problems: |
5704 | 85 # test17: ? |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
86 # |
5704 | 87 # test30: bug, most probably - a problem around mac format |
88 # | |
89 # test32: VMS is not case sensitive and all filenames are lowercase within Vim | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
90 # (this should be changed in order to preserve the original filename) - should |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
91 # be fixed. VMS allows just one dot in the filename |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
92 # |
5704 | 93 # test58, test59: Failed/Hangs - VMS does not support spell files (file names |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
94 # with too many dots). |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
95 # |
5704 | 96 # test72: bug - Vim hangs at :rename (while rename works well otherwise) |
97 # test78: bug - Vim dies at :recover Xtest | |
98 # test83: ? | |
99 # test85: no Lua interface | |
100 # test89: bug - findfile() does not work on VMS (just in the current directory) | |
101 # test97, test102: Just ODS-5 supports space and special chars in the filename. | |
102 # On ODS-2 tests fail. | |
7 | 103 |
104 .IFDEF WANT_GUI | |
105 SCRIPT_GUI = test16.out | |
106 GUI_OPTION = -g | |
107 .ENDIF | |
108 | |
109 .IFDEF WANT_UNIX | |
5704 | 110 SCRIPT_UNIX = test10.out test12.out test17.out test25.out test27.out test49.out test73.out |
1709 | 111 .ENDIF |
112 | |
113 .IFDEF WANT_WIN | |
114 SCRIPT_WIN = test50.out test52.out | |
115 .ENDIF | |
116 | |
117 .IFDEF WANT_SPELL | |
118 SCRIPT_SPELL = test58.out test59.out | |
7 | 119 .ENDIF |
120 | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
121 .IFDEF WANT_MZSCH |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
122 SCRIPT_MZSCH = test70.out |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
123 .ENDIF |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
124 |
5704 | 125 .IFDEF HAVE_ODS5 |
126 SCRIPT_ODS5 = test97.out test102.out | |
127 .ENDIF | |
128 | |
7 | 129 .IFDEF HAVE_GZIP |
130 SCRIPT_GZIP = test11.out | |
131 .ENDIF | |
132 | |
133 .IFDEF HAVE_GDIFF | |
134 SCRIPT_GDIFF = test47.out | |
135 .ENDIF | |
136 | |
5704 | 137 .IFDEF HAVE_CKSUM |
138 SCRIPT_CKSUM = test77.out | |
139 .ENDIF | |
140 | |
141 .IFDEF HAVE_ICONV | |
142 SCRIPT_ICONV = test83.out | |
143 .ENDIF | |
144 | |
145 .IFDEF HAVE_LUA | |
146 SCRIPT_LUA = test85.out | |
147 .ENDIF | |
148 | |
149 .IFDEF HAVE_PYTHON | |
150 SCRIPT_PYTHON = test86.out test87.out | |
151 .ENDIF | |
152 | |
7 | 153 .in.out : |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
154 -@ !clean up before doing the test |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
155 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then delete/noconfirm/nolog test.out.* |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
156 -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then delete/noconfirm/nolog $*.out.* |
5704 | 157 -@ ! define TMP if not set - some tests use it |
158 -@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP [] | |
7 | 159 -@ write sys$output " " |
160 -@ write sys$output "-----------------------------------------------" | |
161 -@ write sys$output " "$*" " | |
162 -@ write sys$output "-----------------------------------------------" | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
163 -@ !run the test |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
164 -@ create/term/wait/nodetach mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
165 -@ !analyse the result |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
166 -@ directory /size/date test.out |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
167 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename/nolog test.out $*.out |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
168 -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then differences /par $*.out $*.ok; |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
169 -@ !clean up after the test |
7 | 170 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
5704 | 171 -@ if "''F$SEARCH("Xtest.*")'" .NES. "" then delete/noconfirm/nolog Xtest.*.* |
7 | 172 |
5704 | 173 all : clean nolog $(START_WITH) $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_WIN) $(SCRIPT_SPELL) $(SCRIPT_ODS5) $(SCRIPT_GZIP) \ |
174 $(SCRIPT_GDIFF) $(SCRIPT_MZSCH) $(SCRIPT_CKSUM) $(SCRIPT_ICONV) $(SCRIPT_LUA) $(SCRIPT_PYTHON) nolog | |
7 | 175 -@ write sys$output " " |
176 -@ write sys$output "-----------------------------------------------" | |
177 -@ write sys$output " All done" | |
178 -@ write sys$output "-----------------------------------------------" | |
179 -@ deassign sys$output | |
180 -@ delete/noconfirm/nolog x*.*.* | |
181 -@ type test.log | |
182 | |
183 nolog : | |
184 -@ define sys$output test.log | |
185 -@ write sys$output "-----------------------------------------------" | |
186 -@ write sys$output " Standard VIM test cases" | |
187 -@ write sys$output "-----------------------------------------------" | |
188 -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'" | |
189 -@ write sys$output " Vim version:" | |
190 -@ mcr $(VIMPROG) --version | |
191 -@ write sys$output " Test date:" | |
192 -@ show time | |
193 -@ write sys$output "-----------------------------------------------" | |
194 -@ write sys$output " Test results:" | |
195 -@ write sys$output "-----------------------------------------------" | |
196 -@ write sys$output "MAKE_VMS.MMS options:" | |
5704 | 197 -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" " |
198 -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" " | |
199 -@ write sys$output " WANT_WIN = ""$(WANT_WIN)"" " | |
200 -@ write sys$output " WANT_SPELL = ""$(WANT_SPELL)"" " | |
201 -@ write sys$output " WANT_MZSCH = ""$(WANT_MZSCH)"" " | |
202 -@ write sys$output " HAVE_ODS5 = ""$(HAVE_ODS5)"" " | |
203 -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" " | |
204 -@ write sys$output " HAVE_GDIFF = ""$(HAVE_GDIFF)"" " | |
205 -@ write sys$output " HAVE_CKSUM = ""$(HAVE_CKSUM)"" " | |
206 -@ write sys$output " HAVE_ICONV = ""$(HAVE_ICONV)"" " | |
207 -@ write sys$output " HAVE_LUA = ""$(HAVE_LUA)"" " | |
208 -@ write sys$output " HAVE_PYTHON= ""$(HAVE_PYTHON)"" " | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
209 -@ write sys$output "Default vimrc file is VMS.VIM:" |
7 | 210 -@ write sys$output "-----------------------------------------------" |
211 -@ type VMS.VIM | |
212 | |
213 clean : | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
214 -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.* |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
215 -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.* |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
216 -@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.* |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
217 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
5704 | 218 -@ if "''F$SEARCH("Xtest*.*")'" .NES. "" then delete/noconfirm/nolog Xtest*.*.* |
219 -@ if "''F$SEARCH("XX*.*")'" .NES. "" then delete/noconfirm/nolog XX*.*.* | |
220 -@ if "''F$SEARCH("_un_*.*")'" .NES. "" then delete/noconfirm/nolog _un_*.*.* | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
221 -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.* |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
222 -@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.* |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
223 -@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.* |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
224 -@ if "''F$SEARCH("tiny.vim")'" .NES. "" then delete/noconfirm/nolog tiny.vim.* |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
225 -@ if "''F$SEARCH("small.vim")'" .NES. "" then delete/noconfirm/nolog small.vim.* |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
226 -@ if "''F$SEARCH("mbyte.vim")'" .NES. "" then delete/noconfirm/nolog mbyte.vim.* |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
227 -@ if "''F$SEARCH("mzscheme.vim")'" .NES. "" then delete/noconfirm/nolog mzscheme.vim.* |
5704 | 228 -@ if "''F$SEARCH("lua.vim")'" .NES. "" then delete/noconfirm/nolog lua.vim.* |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
229 -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.* |
1709 | 230 |