blob: af76f703ad46b73bbf55c9da3ee6061daa73cf64 [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 Moolenaareffb0cd2020-07-03 21:17:34 +02007# Last change: 2020 Jul 03
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 Moolenaar1ab74a52019-05-31 20:02:53 +020076SCRIPT = test1.out \
Bram Moolenaar7d40b8a2020-07-26 12:52:59 +020077 test42.out test49.out test77a.out
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020078
79# Known problems:
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020080#
Bram Moolenaard2c061d2017-06-22 21:42:49 +020081# test59: Failed/Hangs - VMS does not support spell files (file names
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020082# with too many dots).
83#
Bram Moolenaar071d4272004-06-13 20:20:40 +000084
85.IFDEF WANT_GUI
Bram Moolenaar071d4272004-06-13 20:20:40 +000086GUI_OPTION = -g
87.ENDIF
88
89.IFDEF WANT_UNIX
Bram Moolenaar622b3562020-07-27 20:02:41 +020090SCRIPT_UNIX = test49.out
Bram Moolenaarac98e5d2008-09-01 14:51:37 +000091.ENDIF
92
93.IFDEF WANT_SPELL
Bram Moolenaard2c061d2017-06-22 21:42:49 +020094SCRIPT_SPELL = test59.out
Bram Moolenaar071d4272004-06-13 20:20:40 +000095.ENDIF
96
Bram Moolenaar071d4272004-06-13 20:20:40 +000097.in.out :
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020098 -@ !clean up before doing the test
99 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then delete/noconfirm/nolog test.out.*
100 -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then delete/noconfirm/nolog $*.out.*
Bram Moolenaar206f0112014-03-12 16:51:55 +0100101 -@ ! define TMP if not set - some tests use it
102 -@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP []
Bram Moolenaar071d4272004-06-13 20:20:40 +0000103 -@ write sys$output " "
104 -@ write sys$output "-----------------------------------------------"
105 -@ write sys$output " "$*" "
106 -@ write sys$output "-----------------------------------------------"
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200107 -@ !run the test
Bram Moolenaarde5e2c22016-11-04 20:35:31 +0100108 -@ create/term/wait/nodetach mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200109 -@ !analyse the result
110 -@ directory /size/date test.out
111 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename/nolog test.out $*.out
112 -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then differences /par $*.out $*.ok;
113 -@ !clean up after the test
Bram Moolenaar071d4272004-06-13 20:20:40 +0000114 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
Bram Moolenaar206f0112014-03-12 16:51:55 +0100115 -@ if "''F$SEARCH("Xtest.*")'" .NES. "" then delete/noconfirm/nolog Xtest.*.*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000116
Bram Moolenaar622b3562020-07-27 20:02:41 +0200117all : clean nolog $(START_WITH) $(SCRIPT) $(SCRIPT_UNIX) $(SCRIPT_SPELL) \
118 nolog
Bram Moolenaar071d4272004-06-13 20:20:40 +0000119 -@ write sys$output " "
120 -@ write sys$output "-----------------------------------------------"
121 -@ write sys$output " All done"
122 -@ write sys$output "-----------------------------------------------"
123 -@ deassign sys$output
124 -@ delete/noconfirm/nolog x*.*.*
125 -@ type test.log
126
127nolog :
128 -@ define sys$output test.log
129 -@ write sys$output "-----------------------------------------------"
130 -@ write sys$output " Standard VIM test cases"
131 -@ write sys$output "-----------------------------------------------"
132 -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'"
133 -@ write sys$output " Vim version:"
134 -@ mcr $(VIMPROG) --version
135 -@ write sys$output " Test date:"
136 -@ show time
137 -@ write sys$output "-----------------------------------------------"
138 -@ write sys$output " Test results:"
139 -@ write sys$output "-----------------------------------------------"
140 -@ write sys$output "MAKE_VMS.MMS options:"
Bram Moolenaar206f0112014-03-12 16:51:55 +0100141 -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" "
142 -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" "
143 -@ write sys$output " WANT_WIN = ""$(WANT_WIN)"" "
144 -@ write sys$output " WANT_SPELL = ""$(WANT_SPELL)"" "
145 -@ write sys$output " WANT_MZSCH = ""$(WANT_MZSCH)"" "
146 -@ write sys$output " HAVE_ODS5 = ""$(HAVE_ODS5)"" "
147 -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" "
148 -@ write sys$output " HAVE_GDIFF = ""$(HAVE_GDIFF)"" "
Bram Moolenaar206f0112014-03-12 16:51:55 +0100149 -@ write sys$output " HAVE_ICONV = ""$(HAVE_ICONV)"" "
150 -@ write sys$output " HAVE_LUA = ""$(HAVE_LUA)"" "
151 -@ write sys$output " HAVE_PYTHON= ""$(HAVE_PYTHON)"" "
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200152 -@ write sys$output "Default vimrc file is VMS.VIM:"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000153 -@ write sys$output "-----------------------------------------------"
154 -@ type VMS.VIM
155
156clean :
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200157 -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.*
158 -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.*
159 -@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.*
160 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
Bram Moolenaar206f0112014-03-12 16:51:55 +0100161 -@ if "''F$SEARCH("Xtest*.*")'" .NES. "" then delete/noconfirm/nolog Xtest*.*.*
162 -@ if "''F$SEARCH("XX*.*")'" .NES. "" then delete/noconfirm/nolog XX*.*.*
163 -@ if "''F$SEARCH("_un_*.*")'" .NES. "" then delete/noconfirm/nolog _un_*.*.*
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200164 -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.*
165 -@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.*
166 -@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.*
167 -@ if "''F$SEARCH("tiny.vim")'" .NES. "" then delete/noconfirm/nolog tiny.vim.*
168 -@ if "''F$SEARCH("small.vim")'" .NES. "" then delete/noconfirm/nolog small.vim.*
169 -@ if "''F$SEARCH("mbyte.vim")'" .NES. "" then delete/noconfirm/nolog mbyte.vim.*
170 -@ if "''F$SEARCH("mzscheme.vim")'" .NES. "" then delete/noconfirm/nolog mzscheme.vim.*
171 -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.*
Bram Moolenaarac98e5d2008-09-01 14:51:37 +0000172