1# 2# Makefile to run all tests for Vim on VMS 3# 4# Authors: Zoltan Arpadffy, <[email protected]> 5# Sandor Kopanyi, <[email protected]> 6# 7# Last change: 2019 May 31 8# 9# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64. 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 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 44# Comment out if you want to run mzschema tests. 45# It fails because VMS does not support this feature yet. 46# WANT_MZSCH = YES 47 48# Comment out if you have ODS-5 file system 49# HAVE_ODS5 = YES 50 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 57# Comment out if you have ICONV support 58# 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 66####################################################################### 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 76SCRIPT = test1.out \ 77 test42.out test44.out test49.out test77a.out test99.out 78 79# Known problems: 80# 81# test59: Failed/Hangs - VMS does not support spell files (file names 82# with too many dots). 83# 84# test78: bug - Vim dies at :recover Xtest 85# test89: bug - findfile() does not work on VMS (just in the current directory) 86# test102: Just ODS-5 supports space and special chars in the filename. 87# On ODS-2 tests fail. 88 89.IFDEF WANT_GUI 90SCRIPT_GUI = test16.out 91GUI_OPTION = -g 92.ENDIF 93 94.IFDEF WANT_UNIX 95SCRIPT_UNIX = test10.out test27.out test49.out 96.ENDIF 97 98.IFDEF WANT_WIN 99SCRIPT_WIN = test52.out 100.ENDIF 101 102.IFDEF WANT_SPELL 103SCRIPT_SPELL = test59.out 104.ENDIF 105 106.IFDEF WANT_MZSCH 107SCRIPT_MZSCH = test70.out 108.ENDIF 109 110.IFDEF HAVE_ODS5 111SCRIPT_ODS5 = test102.out 112.ENDIF 113 114.IFDEF HAVE_GDIFF 115SCRIPT_GDIFF = test47.out 116.ENDIF 117 118.IFDEF HAVE_PYTHON 119SCRIPT_PYTHON = test86.out test87.out 120.ENDIF 121 122.in.out : 123 -@ !clean up before doing the test 124 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then delete/noconfirm/nolog test.out.* 125 -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then delete/noconfirm/nolog $*.out.* 126 -@ ! define TMP if not set - some tests use it 127 -@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP [] 128 -@ write sys$output " " 129 -@ write sys$output "-----------------------------------------------" 130 -@ write sys$output " "$*" " 131 -@ write sys$output "-----------------------------------------------" 132 -@ !run the test 133 -@ create/term/wait/nodetach mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in 134 -@ !analyse the result 135 -@ directory /size/date test.out 136 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename/nolog test.out $*.out 137 -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then differences /par $*.out $*.ok; 138 -@ !clean up after the test 139 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* 140 -@ if "''F$SEARCH("Xtest.*")'" .NES. "" then delete/noconfirm/nolog Xtest.*.* 141 142all : clean nolog $(START_WITH) $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_WIN) $(SCRIPT_SPELL) $(SCRIPT_ODS5) \ 143 $(SCRIPT_GDIFF) $(SCRIPT_MZSCH) $(SCRIPT_LUA) $(SCRIPT_PYTHON) nolog 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 152nolog : 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)"" " 168 -@ write sys$output " WANT_WIN = ""$(WANT_WIN)"" " 169 -@ write sys$output " WANT_SPELL = ""$(WANT_SPELL)"" " 170 -@ write sys$output " WANT_MZSCH = ""$(WANT_MZSCH)"" " 171 -@ write sys$output " HAVE_ODS5 = ""$(HAVE_ODS5)"" " 172 -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" " 173 -@ write sys$output " HAVE_GDIFF = ""$(HAVE_GDIFF)"" " 174 -@ write sys$output " HAVE_ICONV = ""$(HAVE_ICONV)"" " 175 -@ write sys$output " HAVE_LUA = ""$(HAVE_LUA)"" " 176 -@ write sys$output " HAVE_PYTHON= ""$(HAVE_PYTHON)"" " 177 -@ write sys$output "Default vimrc file is VMS.VIM:" 178 -@ write sys$output "-----------------------------------------------" 179 -@ type VMS.VIM 180 181clean : 182 -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.* 183 -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.* 184 -@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.* 185 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* 186 -@ if "''F$SEARCH("Xtest*.*")'" .NES. "" then delete/noconfirm/nolog Xtest*.*.* 187 -@ if "''F$SEARCH("XX*.*")'" .NES. "" then delete/noconfirm/nolog XX*.*.* 188 -@ if "''F$SEARCH("_un_*.*")'" .NES. "" then delete/noconfirm/nolog _un_*.*.* 189 -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.* 190 -@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.* 191 -@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.* 192 -@ if "''F$SEARCH("tiny.vim")'" .NES. "" then delete/noconfirm/nolog tiny.vim.* 193 -@ if "''F$SEARCH("small.vim")'" .NES. "" then delete/noconfirm/nolog small.vim.* 194 -@ if "''F$SEARCH("mbyte.vim")'" .NES. "" then delete/noconfirm/nolog mbyte.vim.* 195 -@ if "''F$SEARCH("mzscheme.vim")'" .NES. "" then delete/noconfirm/nolog mzscheme.vim.* 196 -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.* 197 198