Mercurial > vim
annotate src/testdir/Make_vms.mms @ 7189:0b4387f570ec v7.4.904
commit https://github.com/vim/vim/commit/6407b3e80d7d7f8f0797c13ae35cc06f96be46c9
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 2 12:50:55 2015 +0100
patch 7.4.904
Problem: Vim does not provide .desktop files.
Solution: Include and install .desktop files. (James McCoy, closes #455)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 02 Nov 2015 13:00:04 +0100 |
parents | 64e30831fa42 |
children | 6ba7182fb7bd |
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 # | |
7092
64e30831fa42
commit https://github.com/vim/vim/commit/aa23b379421aa214e6543b06c974594a25799b09
Christian Brabandt <cb@256bit.org>
parents:
7064
diff
changeset
|
7 # Last change: 2015 Sep 08 |
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 | |
77 .SUFFIXES : .out .in | |
78 | |
79 SCRIPT = test1.out test2.out test3.out test4.out test5.out \ | |
80 test6.out test7.out test8.out test9.out test10a.out\ | |
5704 | 81 test13.out test14.out test15.out \ |
7 | 82 test18.out test19.out test20.out test21.out test22.out \ |
83 test23.out test24.out test26.out \ | |
1709 | 84 test28.out test29.out test30.out test31.out test32.out \ |
7 | 85 test33.out test34.out test35.out test36.out test37.out \ |
86 test38.out test39.out test40.out test41.out test42.out \ | |
87 test43.out test44.out test45.out test46.out \ | |
5704 | 88 test48.out test49.out test51.out test53.out test54.out \ |
89 test55.out test56.out test57.out test60.out \ | |
1840 | 90 test61.out test62.out test63.out test64.out test65.out \ |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
91 test66.out test67.out test68.out test69.out \ |
2789 | 92 test71.out test72.out test74.out test75.out test76.out \ |
5704 | 93 test77a.out test78.out test79.out test80.out test81.out \ |
94 test82.out test84.out test88.out test89.out \ | |
4444 | 95 test90.out test91.out test92.out test93.out test94.out \ |
5704 | 96 test95.out test96.out test98.out test99.out \ |
97 test100.out test101.out test103.out test104.out \ | |
5948 | 98 test105.out test106.out test107.out \ |
6522 | 99 test_argument_0count.out \ |
6398 | 100 test_argument_count.out \ |
6935 | 101 test_autocmd_option.out \ |
5848 | 102 test_autoformat_join.out \ |
5995 | 103 test_breakindent.out \ |
7092
64e30831fa42
commit https://github.com/vim/vim/commit/aa23b379421aa214e6543b06c974594a25799b09
Christian Brabandt <cb@256bit.org>
parents:
7064
diff
changeset
|
104 test_cdo.out \ |
6096 | 105 test_changelist.out \ |
6991 | 106 test_charsearch.out \ |
6398 | 107 test_close_count.out \ |
6424 | 108 test_command_count.out \ |
7064
5fc5c5bf2233
commit https://github.com/vim/vim/commit/37a8de17d4dfd3d463960c38a204ce399c8e19d4
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
109 test_comparators.out \ |
6712 | 110 test_erasebackword.out \ |
5796 | 111 test_eval.out \ |
6933 | 112 test_fixeol.out \ |
6868 | 113 test_increment.out \ |
6098 | 114 test_insertcount.out \ |
6777 | 115 test_listchars.out \ |
6140 | 116 test_listlbr.out \ |
117 test_listlbr_utf8.out \ | |
6299 | 118 test_mapping.out \ |
6616 | 119 test_marks.out \ |
6947 | 120 test_match_conceal.out \ |
6438 | 121 test_nested_function.out \ |
6140 | 122 test_options.out \ |
6847 | 123 test_perl.out \ |
6140 | 124 test_qf_title.out \ |
6847 | 125 test_ruby.out \ |
6903 | 126 test_search_mbyte.out \ |
6841 | 127 test_set.out \ |
6307 | 128 test_signs.out \ |
6675 | 129 test_textobjects.out \ |
6140 | 130 test_utf8.out |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
131 |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
132 # Known problems: |
5704 | 133 # test17: ? |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
134 # |
5704 | 135 # test30: bug, most probably - a problem around mac format |
136 # | |
137 # 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
|
138 # (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
|
139 # 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
|
140 # |
5704 | 141 # 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
|
142 # with too many dots). |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
143 # |
5704 | 144 # test72: bug - Vim hangs at :rename (while rename works well otherwise) |
145 # test78: bug - Vim dies at :recover Xtest | |
146 # test83: ? | |
147 # test85: no Lua interface | |
148 # test89: bug - findfile() does not work on VMS (just in the current directory) | |
149 # test97, test102: Just ODS-5 supports space and special chars in the filename. | |
150 # On ODS-2 tests fail. | |
7 | 151 |
152 .IFDEF WANT_GUI | |
153 SCRIPT_GUI = test16.out | |
154 GUI_OPTION = -g | |
155 .ENDIF | |
156 | |
157 .IFDEF WANT_UNIX | |
5704 | 158 SCRIPT_UNIX = test10.out test12.out test17.out test25.out test27.out test49.out test73.out |
1709 | 159 .ENDIF |
160 | |
161 .IFDEF WANT_WIN | |
162 SCRIPT_WIN = test50.out test52.out | |
163 .ENDIF | |
164 | |
165 .IFDEF WANT_SPELL | |
166 SCRIPT_SPELL = test58.out test59.out | |
7 | 167 .ENDIF |
168 | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
169 .IFDEF WANT_MZSCH |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
170 SCRIPT_MZSCH = test70.out |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
171 .ENDIF |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
172 |
5704 | 173 .IFDEF HAVE_ODS5 |
174 SCRIPT_ODS5 = test97.out test102.out | |
175 .ENDIF | |
176 | |
7 | 177 .IFDEF HAVE_GZIP |
178 SCRIPT_GZIP = test11.out | |
179 .ENDIF | |
180 | |
181 .IFDEF HAVE_GDIFF | |
182 SCRIPT_GDIFF = test47.out | |
183 .ENDIF | |
184 | |
5704 | 185 .IFDEF HAVE_CKSUM |
186 SCRIPT_CKSUM = test77.out | |
187 .ENDIF | |
188 | |
189 .IFDEF HAVE_ICONV | |
190 SCRIPT_ICONV = test83.out | |
191 .ENDIF | |
192 | |
193 .IFDEF HAVE_LUA | |
194 SCRIPT_LUA = test85.out | |
195 .ENDIF | |
196 | |
197 .IFDEF HAVE_PYTHON | |
198 SCRIPT_PYTHON = test86.out test87.out | |
199 .ENDIF | |
200 | |
7 | 201 .in.out : |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
202 -@ !clean up before doing the test |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
203 -@ 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
|
204 -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then delete/noconfirm/nolog $*.out.* |
5704 | 205 -@ ! define TMP if not set - some tests use it |
206 -@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP [] | |
7 | 207 -@ write sys$output " " |
208 -@ write sys$output "-----------------------------------------------" | |
209 -@ write sys$output " "$*" " | |
210 -@ write sys$output "-----------------------------------------------" | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
211 -@ !run the test |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
212 -@ 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
|
213 -@ !analyse the result |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
214 -@ directory /size/date test.out |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
215 -@ 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
|
216 -@ 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
|
217 -@ !clean up after the test |
7 | 218 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
5704 | 219 -@ if "''F$SEARCH("Xtest.*")'" .NES. "" then delete/noconfirm/nolog Xtest.*.* |
7 | 220 |
5704 | 221 all : clean nolog $(START_WITH) $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_WIN) $(SCRIPT_SPELL) $(SCRIPT_ODS5) $(SCRIPT_GZIP) \ |
222 $(SCRIPT_GDIFF) $(SCRIPT_MZSCH) $(SCRIPT_CKSUM) $(SCRIPT_ICONV) $(SCRIPT_LUA) $(SCRIPT_PYTHON) nolog | |
7 | 223 -@ write sys$output " " |
224 -@ write sys$output "-----------------------------------------------" | |
225 -@ write sys$output " All done" | |
226 -@ write sys$output "-----------------------------------------------" | |
227 -@ deassign sys$output | |
228 -@ delete/noconfirm/nolog x*.*.* | |
229 -@ type test.log | |
230 | |
231 nolog : | |
232 -@ define sys$output test.log | |
233 -@ write sys$output "-----------------------------------------------" | |
234 -@ write sys$output " Standard VIM test cases" | |
235 -@ write sys$output "-----------------------------------------------" | |
236 -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'" | |
237 -@ write sys$output " Vim version:" | |
238 -@ mcr $(VIMPROG) --version | |
239 -@ write sys$output " Test date:" | |
240 -@ show time | |
241 -@ write sys$output "-----------------------------------------------" | |
242 -@ write sys$output " Test results:" | |
243 -@ write sys$output "-----------------------------------------------" | |
244 -@ write sys$output "MAKE_VMS.MMS options:" | |
5704 | 245 -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" " |
246 -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" " | |
247 -@ write sys$output " WANT_WIN = ""$(WANT_WIN)"" " | |
248 -@ write sys$output " WANT_SPELL = ""$(WANT_SPELL)"" " | |
249 -@ write sys$output " WANT_MZSCH = ""$(WANT_MZSCH)"" " | |
250 -@ write sys$output " HAVE_ODS5 = ""$(HAVE_ODS5)"" " | |
251 -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" " | |
252 -@ write sys$output " HAVE_GDIFF = ""$(HAVE_GDIFF)"" " | |
253 -@ write sys$output " HAVE_CKSUM = ""$(HAVE_CKSUM)"" " | |
254 -@ write sys$output " HAVE_ICONV = ""$(HAVE_ICONV)"" " | |
255 -@ write sys$output " HAVE_LUA = ""$(HAVE_LUA)"" " | |
256 -@ write sys$output " HAVE_PYTHON= ""$(HAVE_PYTHON)"" " | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
257 -@ write sys$output "Default vimrc file is VMS.VIM:" |
7 | 258 -@ write sys$output "-----------------------------------------------" |
259 -@ type VMS.VIM | |
260 | |
261 clean : | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
262 -@ 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
|
263 -@ 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
|
264 -@ 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
|
265 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
5704 | 266 -@ if "''F$SEARCH("Xtest*.*")'" .NES. "" then delete/noconfirm/nolog Xtest*.*.* |
267 -@ if "''F$SEARCH("XX*.*")'" .NES. "" then delete/noconfirm/nolog XX*.*.* | |
268 -@ 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
|
269 -@ 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
|
270 -@ 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
|
271 -@ 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
|
272 -@ 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
|
273 -@ 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
|
274 -@ 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
|
275 -@ if "''F$SEARCH("mzscheme.vim")'" .NES. "" then delete/noconfirm/nolog mzscheme.vim.* |
5704 | 276 -@ 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
|
277 -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.* |
1709 | 278 |