Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 | # |
Bram Moolenaar | de5e2c2 | 2016-11-04 20:35:31 +0100 | [diff] [blame] | 7 | # Last change: 2016 Nov 04 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8 | # |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 9 | # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 | |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 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 | |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 44 | # Comment out if you want to run mzschema tests. |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 45 | # It fails because VMS does not support this feature yet. |
| 46 | # WANT_MZSCH = YES |
| 47 | |
Bram Moolenaar | b96a7f3 | 2014-11-27 16:22:48 +0100 | [diff] [blame] | 48 | # Comment out if you have ODS-5 file system |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 49 | # HAVE_ODS5 = YES |
| 50 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 | |
Bram Moolenaar | b96a7f3 | 2014-11-27 16:22:48 +0100 | [diff] [blame] | 57 | # Comment out if you have GNU compatible cksum on your system |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 58 | # HAVE_CKSUM = YES |
| 59 | |
Bram Moolenaar | b96a7f3 | 2014-11-27 16:22:48 +0100 | [diff] [blame] | 60 | # Comment out if you have ICONV support |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 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 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 | |
Bram Moolenaar | de5e2c2 | 2016-11-04 20:35:31 +0100 | [diff] [blame] | 79 | SCRIPT = test1.out test3.out test4.out test5.out \ |
| 80 | test7.out test8.out test9.out \ |
| 81 | test14.out test15.out \ |
| 82 | test19.out test20.out test22.out \ |
Bram Moolenaar | de5e2c2 | 2016-11-04 20:35:31 +0100 | [diff] [blame] | 83 | test28.out test29.out test30.out test31.out test32.out \ |
| 84 | test33.out test34.out test36.out test37.out \ |
| 85 | test38.out test39.out test40.out test41.out test42.out \ |
| 86 | test43.out test44.out test45.out \ |
| 87 | test48.out test49.out test51.out test53.out test54.out \ |
| 88 | test55.out test56.out test57.out test60.out \ |
Bram Moolenaar | 863e80b | 2017-06-04 20:30:00 +0200 | [diff] [blame] | 89 | test64.out \ |
Bram Moolenaar | 292eff0 | 2017-07-11 21:46:28 +0200 | [diff] [blame] | 90 | test66.out test68.out test69.out \ |
| 91 | test72.out \ |
Bram Moolenaar | de5e2c2 | 2016-11-04 20:35:31 +0100 | [diff] [blame] | 92 | test77a.out test78.out test79.out test80.out \ |
Bram Moolenaar | 28b2382 | 2017-06-27 18:29:17 +0200 | [diff] [blame] | 93 | test84.out test88.out \ |
| 94 | test91.out test94.out \ |
Bram Moolenaar | de5e2c2 | 2016-11-04 20:35:31 +0100 | [diff] [blame] | 95 | test95.out test98.out test99.out \ |
| 96 | test103.out test104.out \ |
| 97 | test107.out test108.out\ |
| 98 | test_autocmd_option.out \ |
| 99 | test_autoformat_join.out \ |
| 100 | test_breakindent.out \ |
| 101 | test_changelist.out \ |
| 102 | test_close_count.out \ |
Bram Moolenaar | de5e2c2 | 2016-11-04 20:35:31 +0100 | [diff] [blame] | 103 | test_erasebackword.out \ |
| 104 | test_eval.out \ |
| 105 | test_fixeol.out \ |
Bram Moolenaar | de5e2c2 | 2016-11-04 20:35:31 +0100 | [diff] [blame] | 106 | test_insertcount.out \ |
| 107 | test_listchars.out \ |
| 108 | test_listlbr.out \ |
| 109 | test_listlbr_utf8.out \ |
| 110 | test_search_mbyte.out \ |
| 111 | test_utf8.out \ |
| 112 | test_wordcount.out |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 113 | |
| 114 | # Known problems: |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 115 | # test17: ? |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 116 | # |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 117 | # test30: bug, most probably - a problem around mac format |
| 118 | # |
| 119 | # test32: VMS is not case sensitive and all filenames are lowercase within Vim |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 120 | # (this should be changed in order to preserve the original filename) - should |
| 121 | # be fixed. VMS allows just one dot in the filename |
| 122 | # |
Bram Moolenaar | d2c061d | 2017-06-22 21:42:49 +0200 | [diff] [blame] | 123 | # test59: Failed/Hangs - VMS does not support spell files (file names |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 124 | # with too many dots). |
| 125 | # |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 126 | # test72: bug - Vim hangs at :rename (while rename works well otherwise) |
| 127 | # test78: bug - Vim dies at :recover Xtest |
| 128 | # test83: ? |
| 129 | # test85: no Lua interface |
| 130 | # test89: bug - findfile() does not work on VMS (just in the current directory) |
Bram Moolenaar | 292eff0 | 2017-07-11 21:46:28 +0200 | [diff] [blame] | 131 | # test102: Just ODS-5 supports space and special chars in the filename. |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 132 | # On ODS-2 tests fail. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 133 | |
| 134 | .IFDEF WANT_GUI |
Bram Moolenaar | de5e2c2 | 2016-11-04 20:35:31 +0100 | [diff] [blame] | 135 | SCRIPT_GUI = test16.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 136 | GUI_OPTION = -g |
| 137 | .ENDIF |
| 138 | |
| 139 | .IFDEF WANT_UNIX |
Bram Moolenaar | de5e2c2 | 2016-11-04 20:35:31 +0100 | [diff] [blame] | 140 | SCRIPT_UNIX = test10.out test12.out test17.out test25.out test27.out test49.out test73.out |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 141 | .ENDIF |
| 142 | |
| 143 | .IFDEF WANT_WIN |
| 144 | SCRIPT_WIN = test50.out test52.out |
| 145 | .ENDIF |
| 146 | |
| 147 | .IFDEF WANT_SPELL |
Bram Moolenaar | d2c061d | 2017-06-22 21:42:49 +0200 | [diff] [blame] | 148 | SCRIPT_SPELL = test59.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 149 | .ENDIF |
| 150 | |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 151 | .IFDEF WANT_MZSCH |
| 152 | SCRIPT_MZSCH = test70.out |
| 153 | .ENDIF |
| 154 | |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 155 | .IFDEF HAVE_ODS5 |
Bram Moolenaar | 292eff0 | 2017-07-11 21:46:28 +0200 | [diff] [blame] | 156 | SCRIPT_ODS5 = test102.out |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 157 | .ENDIF |
| 158 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 159 | .IFDEF HAVE_GZIP |
| 160 | SCRIPT_GZIP = test11.out |
| 161 | .ENDIF |
| 162 | |
| 163 | .IFDEF HAVE_GDIFF |
| 164 | SCRIPT_GDIFF = test47.out |
| 165 | .ENDIF |
| 166 | |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 167 | .IFDEF HAVE_CKSUM |
| 168 | SCRIPT_CKSUM = test77.out |
| 169 | .ENDIF |
| 170 | |
| 171 | .IFDEF HAVE_ICONV |
| 172 | SCRIPT_ICONV = test83.out |
| 173 | .ENDIF |
| 174 | |
| 175 | .IFDEF HAVE_LUA |
| 176 | SCRIPT_LUA = test85.out |
| 177 | .ENDIF |
| 178 | |
| 179 | .IFDEF HAVE_PYTHON |
| 180 | SCRIPT_PYTHON = test86.out test87.out |
| 181 | .ENDIF |
| 182 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 183 | .in.out : |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 184 | -@ !clean up before doing the test |
| 185 | -@ if "''F$SEARCH("test.out.*")'" .NES. "" then delete/noconfirm/nolog test.out.* |
| 186 | -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then delete/noconfirm/nolog $*.out.* |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 187 | -@ ! define TMP if not set - some tests use it |
| 188 | -@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP [] |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 189 | -@ write sys$output " " |
| 190 | -@ write sys$output "-----------------------------------------------" |
| 191 | -@ write sys$output " "$*" " |
| 192 | -@ write sys$output "-----------------------------------------------" |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 193 | -@ !run the test |
Bram Moolenaar | de5e2c2 | 2016-11-04 20:35:31 +0100 | [diff] [blame] | 194 | -@ create/term/wait/nodetach mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 195 | -@ !analyse the result |
| 196 | -@ directory /size/date test.out |
| 197 | -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename/nolog test.out $*.out |
| 198 | -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then differences /par $*.out $*.ok; |
| 199 | -@ !clean up after the test |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 200 | -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 201 | -@ if "''F$SEARCH("Xtest.*")'" .NES. "" then delete/noconfirm/nolog Xtest.*.* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 202 | |
Bram Moolenaar | de5e2c2 | 2016-11-04 20:35:31 +0100 | [diff] [blame] | 203 | all : clean nolog $(START_WITH) $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_WIN) $(SCRIPT_SPELL) $(SCRIPT_ODS5) $(SCRIPT_GZIP) \ |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 204 | $(SCRIPT_GDIFF) $(SCRIPT_MZSCH) $(SCRIPT_CKSUM) $(SCRIPT_ICONV) $(SCRIPT_LUA) $(SCRIPT_PYTHON) nolog |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 205 | -@ write sys$output " " |
| 206 | -@ write sys$output "-----------------------------------------------" |
| 207 | -@ write sys$output " All done" |
| 208 | -@ write sys$output "-----------------------------------------------" |
| 209 | -@ deassign sys$output |
| 210 | -@ delete/noconfirm/nolog x*.*.* |
| 211 | -@ type test.log |
| 212 | |
| 213 | nolog : |
| 214 | -@ define sys$output test.log |
| 215 | -@ write sys$output "-----------------------------------------------" |
| 216 | -@ write sys$output " Standard VIM test cases" |
| 217 | -@ write sys$output "-----------------------------------------------" |
| 218 | -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'" |
| 219 | -@ write sys$output " Vim version:" |
| 220 | -@ mcr $(VIMPROG) --version |
| 221 | -@ write sys$output " Test date:" |
| 222 | -@ show time |
| 223 | -@ write sys$output "-----------------------------------------------" |
| 224 | -@ write sys$output " Test results:" |
| 225 | -@ write sys$output "-----------------------------------------------" |
| 226 | -@ write sys$output "MAKE_VMS.MMS options:" |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 227 | -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" " |
| 228 | -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" " |
| 229 | -@ write sys$output " WANT_WIN = ""$(WANT_WIN)"" " |
| 230 | -@ write sys$output " WANT_SPELL = ""$(WANT_SPELL)"" " |
| 231 | -@ write sys$output " WANT_MZSCH = ""$(WANT_MZSCH)"" " |
| 232 | -@ write sys$output " HAVE_ODS5 = ""$(HAVE_ODS5)"" " |
| 233 | -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" " |
| 234 | -@ write sys$output " HAVE_GDIFF = ""$(HAVE_GDIFF)"" " |
| 235 | -@ write sys$output " HAVE_CKSUM = ""$(HAVE_CKSUM)"" " |
| 236 | -@ write sys$output " HAVE_ICONV = ""$(HAVE_ICONV)"" " |
| 237 | -@ write sys$output " HAVE_LUA = ""$(HAVE_LUA)"" " |
| 238 | -@ write sys$output " HAVE_PYTHON= ""$(HAVE_PYTHON)"" " |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 239 | -@ write sys$output "Default vimrc file is VMS.VIM:" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 240 | -@ write sys$output "-----------------------------------------------" |
| 241 | -@ type VMS.VIM |
| 242 | |
| 243 | clean : |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 244 | -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.* |
| 245 | -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.* |
| 246 | -@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.* |
| 247 | -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 248 | -@ if "''F$SEARCH("Xtest*.*")'" .NES. "" then delete/noconfirm/nolog Xtest*.*.* |
| 249 | -@ if "''F$SEARCH("XX*.*")'" .NES. "" then delete/noconfirm/nolog XX*.*.* |
| 250 | -@ if "''F$SEARCH("_un_*.*")'" .NES. "" then delete/noconfirm/nolog _un_*.*.* |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 251 | -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.* |
| 252 | -@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.* |
| 253 | -@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.* |
| 254 | -@ if "''F$SEARCH("tiny.vim")'" .NES. "" then delete/noconfirm/nolog tiny.vim.* |
| 255 | -@ if "''F$SEARCH("small.vim")'" .NES. "" then delete/noconfirm/nolog small.vim.* |
| 256 | -@ if "''F$SEARCH("mbyte.vim")'" .NES. "" then delete/noconfirm/nolog mbyte.vim.* |
| 257 | -@ if "''F$SEARCH("mzscheme.vim")'" .NES. "" then delete/noconfirm/nolog mzscheme.vim.* |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 258 | -@ if "''F$SEARCH("lua.vim")'" .NES. "" then delete/noconfirm/nolog lua.vim.* |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 259 | -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.* |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 260 | |