blob: b76c2305d487fb51c053c6adc1b980750f910840 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#
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#
Bram Moolenaarde5e2c22016-11-04 20:35:31 +01007# Last change: 2016 Nov 04
Bram Moolenaar071d4272004-06-13 20:20:40 +00008#
Bram Moolenaarac98e5d2008-09-01 14:51:37 +00009# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
Bram Moolenaar071d4272004-06-13 20:20:40 +000010# 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
Bram Moolenaarac98e5d2008-09-01 14:51:37 +000035# 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
Bram Moolenaar206f0112014-03-12 16:51:55 +010044# Comment out if you want to run mzschema tests.
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020045# It fails because VMS does not support this feature yet.
46# WANT_MZSCH = YES
47
Bram Moolenaarb96a7f32014-11-27 16:22:48 +010048# Comment out if you have ODS-5 file system
Bram Moolenaar206f0112014-03-12 16:51:55 +010049# HAVE_ODS5 = YES
50
Bram Moolenaar071d4272004-06-13 20:20:40 +000051# 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
Bram Moolenaarb96a7f32014-11-27 16:22:48 +010057# Comment out if you have ICONV support
Bram Moolenaar206f0112014-03-12 16:51:55 +010058# HAVE_ICONV = YES
59
60# Comment out if you have LUA support
61# HAVE_LUA = YES
62
63# Comment out if you have PYTHON support
64# HAVE_PYTHON = YES
65
Bram Moolenaar071d4272004-06-13 20:20:40 +000066#######################################################################
67# End of configuration section.
68#
69# Please, do not change anything below without programming experience.
70#######################################################################
71
72VIMPROG = <->vim.exe
73
74.SUFFIXES : .out .in
75
Bram Moolenaar4a6fcf82017-10-12 21:29:22 +020076SCRIPT = test1.out test3.out \
Bram Moolenaarde5e2c22016-11-04 20:35:31 +010077 test14.out test15.out \
Bram Moolenaar15993ce2017-10-26 20:21:44 +020078 test29.out test30.out \
79 test36.out test37.out test39.out \
80 test40.out test42.out test44.out test45.out \
81 test48.out test49.out test55.out \
82 test64.out test68.out test69.out \
83 test72.out test77a.out test88.out \
84 test94.out test95.out test99.out test108.out\
Bram Moolenaarde5e2c22016-11-04 20:35:31 +010085 test_autocmd_option.out \
Bram Moolenaarde5e2c22016-11-04 20:35:31 +010086 test_breakindent.out \
87 test_changelist.out \
88 test_close_count.out \
Bram Moolenaarde5e2c22016-11-04 20:35:31 +010089 test_erasebackword.out \
90 test_eval.out \
91 test_fixeol.out \
Bram Moolenaarde5e2c22016-11-04 20:35:31 +010092 test_insertcount.out \
93 test_listchars.out \
94 test_listlbr.out \
95 test_listlbr_utf8.out \
96 test_search_mbyte.out \
97 test_utf8.out \
98 test_wordcount.out
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020099
100# Known problems:
Bram Moolenaar206f0112014-03-12 16:51:55 +0100101# test17: ?
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200102#
Bram Moolenaar206f0112014-03-12 16:51:55 +0100103# test30: bug, most probably - a problem around mac format
104#
Bram Moolenaard2c061d2017-06-22 21:42:49 +0200105# test59: Failed/Hangs - VMS does not support spell files (file names
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200106# with too many dots).
107#
Bram Moolenaar206f0112014-03-12 16:51:55 +0100108# test72: bug - Vim hangs at :rename (while rename works well otherwise)
109# test78: bug - Vim dies at :recover Xtest
110# test83: ?
111# test85: no Lua interface
112# test89: bug - findfile() does not work on VMS (just in the current directory)
Bram Moolenaar292eff02017-07-11 21:46:28 +0200113# test102: Just ODS-5 supports space and special chars in the filename.
Bram Moolenaar206f0112014-03-12 16:51:55 +0100114# On ODS-2 tests fail.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000115
116.IFDEF WANT_GUI
Bram Moolenaarde5e2c22016-11-04 20:35:31 +0100117SCRIPT_GUI = test16.out
Bram Moolenaar071d4272004-06-13 20:20:40 +0000118GUI_OPTION = -g
119.ENDIF
120
121.IFDEF WANT_UNIX
Bram Moolenaar15993ce2017-10-26 20:21:44 +0200122SCRIPT_UNIX = test10.out test12.out test17.out test27.out test49.out test73.out
Bram Moolenaarac98e5d2008-09-01 14:51:37 +0000123.ENDIF
124
125.IFDEF WANT_WIN
126SCRIPT_WIN = test50.out test52.out
127.ENDIF
128
129.IFDEF WANT_SPELL
Bram Moolenaard2c061d2017-06-22 21:42:49 +0200130SCRIPT_SPELL = test59.out
Bram Moolenaar071d4272004-06-13 20:20:40 +0000131.ENDIF
132
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200133.IFDEF WANT_MZSCH
134SCRIPT_MZSCH = test70.out
135.ENDIF
136
Bram Moolenaar206f0112014-03-12 16:51:55 +0100137.IFDEF HAVE_ODS5
Bram Moolenaar292eff02017-07-11 21:46:28 +0200138SCRIPT_ODS5 = test102.out
Bram Moolenaar206f0112014-03-12 16:51:55 +0100139.ENDIF
140
Bram Moolenaar071d4272004-06-13 20:20:40 +0000141.IFDEF HAVE_GZIP
142SCRIPT_GZIP = test11.out
143.ENDIF
144
145.IFDEF HAVE_GDIFF
146SCRIPT_GDIFF = test47.out
147.ENDIF
148
Bram Moolenaar206f0112014-03-12 16:51:55 +0100149.IFDEF HAVE_ICONV
150SCRIPT_ICONV = test83.out
151.ENDIF
152
153.IFDEF HAVE_LUA
154SCRIPT_LUA = test85.out
155.ENDIF
156
157.IFDEF HAVE_PYTHON
158SCRIPT_PYTHON = test86.out test87.out
159.ENDIF
160
Bram Moolenaar071d4272004-06-13 20:20:40 +0000161.in.out :
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200162 -@ !clean up before doing the test
163 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then delete/noconfirm/nolog test.out.*
164 -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then delete/noconfirm/nolog $*.out.*
Bram Moolenaar206f0112014-03-12 16:51:55 +0100165 -@ ! define TMP if not set - some tests use it
166 -@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP []
Bram Moolenaar071d4272004-06-13 20:20:40 +0000167 -@ write sys$output " "
168 -@ write sys$output "-----------------------------------------------"
169 -@ write sys$output " "$*" "
170 -@ write sys$output "-----------------------------------------------"
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200171 -@ !run the test
Bram Moolenaarde5e2c22016-11-04 20:35:31 +0100172 -@ create/term/wait/nodetach mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200173 -@ !analyse the result
174 -@ directory /size/date test.out
175 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename/nolog test.out $*.out
176 -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then differences /par $*.out $*.ok;
177 -@ !clean up after the test
Bram Moolenaar071d4272004-06-13 20:20:40 +0000178 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
Bram Moolenaar206f0112014-03-12 16:51:55 +0100179 -@ if "''F$SEARCH("Xtest.*")'" .NES. "" then delete/noconfirm/nolog Xtest.*.*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000180
Bram Moolenaarde5e2c22016-11-04 20:35:31 +0100181all : clean nolog $(START_WITH) $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_WIN) $(SCRIPT_SPELL) $(SCRIPT_ODS5) $(SCRIPT_GZIP) \
Bram Moolenaar4a137b42017-08-04 22:37:11 +0200182 $(SCRIPT_GDIFF) $(SCRIPT_MZSCH) $(SCRIPT_ICONV) $(SCRIPT_LUA) $(SCRIPT_PYTHON) nolog
Bram Moolenaar071d4272004-06-13 20:20:40 +0000183 -@ write sys$output " "
184 -@ write sys$output "-----------------------------------------------"
185 -@ write sys$output " All done"
186 -@ write sys$output "-----------------------------------------------"
187 -@ deassign sys$output
188 -@ delete/noconfirm/nolog x*.*.*
189 -@ type test.log
190
191nolog :
192 -@ define sys$output test.log
193 -@ write sys$output "-----------------------------------------------"
194 -@ write sys$output " Standard VIM test cases"
195 -@ write sys$output "-----------------------------------------------"
196 -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'"
197 -@ write sys$output " Vim version:"
198 -@ mcr $(VIMPROG) --version
199 -@ write sys$output " Test date:"
200 -@ show time
201 -@ write sys$output "-----------------------------------------------"
202 -@ write sys$output " Test results:"
203 -@ write sys$output "-----------------------------------------------"
204 -@ write sys$output "MAKE_VMS.MMS options:"
Bram Moolenaar206f0112014-03-12 16:51:55 +0100205 -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" "
206 -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" "
207 -@ write sys$output " WANT_WIN = ""$(WANT_WIN)"" "
208 -@ write sys$output " WANT_SPELL = ""$(WANT_SPELL)"" "
209 -@ write sys$output " WANT_MZSCH = ""$(WANT_MZSCH)"" "
210 -@ write sys$output " HAVE_ODS5 = ""$(HAVE_ODS5)"" "
211 -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" "
212 -@ write sys$output " HAVE_GDIFF = ""$(HAVE_GDIFF)"" "
Bram Moolenaar206f0112014-03-12 16:51:55 +0100213 -@ write sys$output " HAVE_ICONV = ""$(HAVE_ICONV)"" "
214 -@ write sys$output " HAVE_LUA = ""$(HAVE_LUA)"" "
215 -@ write sys$output " HAVE_PYTHON= ""$(HAVE_PYTHON)"" "
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200216 -@ write sys$output "Default vimrc file is VMS.VIM:"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000217 -@ write sys$output "-----------------------------------------------"
218 -@ type VMS.VIM
219
220clean :
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200221 -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.*
222 -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.*
223 -@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.*
224 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
Bram Moolenaar206f0112014-03-12 16:51:55 +0100225 -@ if "''F$SEARCH("Xtest*.*")'" .NES. "" then delete/noconfirm/nolog Xtest*.*.*
226 -@ if "''F$SEARCH("XX*.*")'" .NES. "" then delete/noconfirm/nolog XX*.*.*
227 -@ if "''F$SEARCH("_un_*.*")'" .NES. "" then delete/noconfirm/nolog _un_*.*.*
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200228 -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.*
229 -@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.*
230 -@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.*
231 -@ if "''F$SEARCH("tiny.vim")'" .NES. "" then delete/noconfirm/nolog tiny.vim.*
232 -@ if "''F$SEARCH("small.vim")'" .NES. "" then delete/noconfirm/nolog small.vim.*
233 -@ if "''F$SEARCH("mbyte.vim")'" .NES. "" then delete/noconfirm/nolog mbyte.vim.*
234 -@ if "''F$SEARCH("mzscheme.vim")'" .NES. "" then delete/noconfirm/nolog mzscheme.vim.*
Bram Moolenaar206f0112014-03-12 16:51:55 +0100235 -@ if "''F$SEARCH("lua.vim")'" .NES. "" then delete/noconfirm/nolog lua.vim.*
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200236 -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.*
Bram Moolenaarac98e5d2008-09-01 14:51:37 +0000237