Mercurial > vim
annotate src/testdir/Make_vms.mms @ 5000:72a007399af3
Added tag v7-3-1244 for changeset b4a71dbdb787
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 26 Jun 2013 12:58:32 +0200 |
parents | ccecb03e5e8b |
children | 14e7a115d54d |
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 # | |
4444 | 7 # Last change: 2013 May 18 |
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 | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
44 # Comment out if you want to run mzschema tests. |
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 |
7 | 48 # Comment out if you have gzip on your system |
49 # HAVE_GZIP = YES | |
50 | |
51 # Comment out if you have GNU compatible diff on your system | |
52 # HAVE_GDIFF = YES | |
53 | |
54 ####################################################################### | |
55 # End of configuration section. | |
56 # | |
57 # Please, do not change anything below without programming experience. | |
58 ####################################################################### | |
59 | |
60 VIMPROG = <->vim.exe | |
61 | |
62 .SUFFIXES : .out .in | |
63 | |
64 SCRIPT = test1.out test2.out test3.out test4.out test5.out \ | |
65 test6.out test7.out test8.out test9.out test10a.out\ | |
66 test13.out test14.out test15.out test17.out \ | |
67 test18.out test19.out test20.out test21.out test22.out \ | |
68 test23.out test24.out test26.out \ | |
1709 | 69 test28.out test29.out test30.out test31.out test32.out \ |
7 | 70 test33.out test34.out test35.out test36.out test37.out \ |
71 test38.out test39.out test40.out test41.out test42.out \ | |
72 test43.out test44.out test45.out test46.out \ | |
271 | 73 test48.out test51.out test53.out test54.out test55.out \ |
1709 | 74 test56.out test57.out test60.out \ |
1840 | 75 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
|
76 test66.out test67.out test68.out test69.out \ |
2789 | 77 test71.out test72.out test74.out test75.out test76.out \ |
2961 | 78 test77.out test78.out test79.out test80.out test81.out \ |
4126 | 79 test82.out test83.out test84.out test88.out test89.out \ |
4444 | 80 test90.out test91.out test92.out test93.out test94.out \ |
81 test95.out | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
82 |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
83 # Known problems: |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
84 # Test 30: a problem around mac format - unknown reason |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
85 # |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
86 # Test 32: VMS is not case sensitive and all filenames are lowercase within Vim |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
87 # (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
|
88 # 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
|
89 # |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
90 # Test 58 and 59: Failed/Hangs - VMS does not support spell files (file names |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
91 # with too many dots). |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
92 # |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
93 # Test 72: unknown reason |
3452 | 94 # Test 85: no Lua interface |
7 | 95 |
96 .IFDEF WANT_GUI | |
97 SCRIPT_GUI = test16.out | |
98 GUI_OPTION = -g | |
99 .ENDIF | |
100 | |
101 .IFDEF WANT_UNIX | |
2487
7ec9ada2cd81
Make :find completion consistent between Unix and MS-Windows. Add a test.
Bram Moolenaar <bram@vim.org>
parents:
2441
diff
changeset
|
102 SCRIPT_UNIX = test10.out test12.out test25.out test27.out test49.out test73.out |
1709 | 103 .ENDIF |
104 | |
105 .IFDEF WANT_WIN | |
106 SCRIPT_WIN = test50.out test52.out | |
107 .ENDIF | |
108 | |
109 .IFDEF WANT_SPELL | |
110 SCRIPT_SPELL = test58.out test59.out | |
7 | 111 .ENDIF |
112 | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
113 .IFDEF WANT_MZSCH |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
114 SCRIPT_MZSCH = test70.out |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
115 .ENDIF |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
116 |
7 | 117 .IFDEF HAVE_GZIP |
118 SCRIPT_GZIP = test11.out | |
119 .ENDIF | |
120 | |
121 .IFDEF HAVE_GDIFF | |
122 SCRIPT_GDIFF = test47.out | |
123 .ENDIF | |
124 | |
125 .in.out : | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
126 -@ !clean up before doing the test |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
127 -@ 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
|
128 -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then delete/noconfirm/nolog $*.out.* |
7 | 129 -@ write sys$output " " |
130 -@ write sys$output "-----------------------------------------------" | |
131 -@ write sys$output " "$*" " | |
132 -@ write sys$output "-----------------------------------------------" | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
133 -@ !run the test |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
134 -@ 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
|
135 -@ !analyse the result |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
136 -@ directory /size/date test.out |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
137 -@ 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
|
138 -@ 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
|
139 -@ !clean up after the test |
7 | 140 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
141 | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
142 all : clean nolog $(START_WITH) $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_WIN) $(SCRIPT_SPELL) $(SCRIPT_GZIP) \ |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
143 $(SCRIPT_GDIFF) $(SCRIPT_MZSCH) nolog |
7 | 144 -@ write sys$output " " |
145 -@ write sys$output "-----------------------------------------------" | |
146 -@ write sys$output " All done" | |
147 -@ write sys$output "-----------------------------------------------" | |
148 -@ deassign sys$output | |
149 -@ delete/noconfirm/nolog x*.*.* | |
150 -@ type test.log | |
151 | |
152 nolog : | |
153 -@ define sys$output test.log | |
154 -@ write sys$output "-----------------------------------------------" | |
155 -@ write sys$output " Standard VIM test cases" | |
156 -@ write sys$output "-----------------------------------------------" | |
157 -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'" | |
158 -@ write sys$output " Vim version:" | |
159 -@ mcr $(VIMPROG) --version | |
160 -@ write sys$output " Test date:" | |
161 -@ show time | |
162 -@ write sys$output "-----------------------------------------------" | |
163 -@ write sys$output " Test results:" | |
164 -@ write sys$output "-----------------------------------------------" | |
165 -@ write sys$output "MAKE_VMS.MMS options:" | |
166 -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" " | |
167 -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" " | |
1709 | 168 -@ write sys$output " WANT_WIN = ""$(WANT_WIN)"" " |
169 -@ write sys$output " WANT_SPELL= ""$(WANT_SPELL)"" " | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
170 -@ write sys$output " WANT_MZSCH= ""$(WANT_MZSCH)"" " |
7 | 171 -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" " |
172 -@ write sys$output " HAVE_GDIFF= ""$(HAVE_GDIFF)"" " | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
173 -@ write sys$output "Default vimrc file is VMS.VIM:" |
7 | 174 -@ write sys$output "-----------------------------------------------" |
175 -@ type VMS.VIM | |
176 | |
177 clean : | |
2441
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
178 -@ 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
|
179 -@ 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
|
180 -@ 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
|
181 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
620a42739426
Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents:
2436
diff
changeset
|
182 -@ 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
|
183 -@ 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
|
184 -@ 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
|
185 -@ 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
|
186 -@ 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
|
187 -@ 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
|
188 -@ if "''F$SEARCH("mzscheme.vim")'" .NES. "" then delete/noconfirm/nolog mzscheme.vim.* |
3855 | 189 -@ 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
|
190 -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.* |
1709 | 191 |