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 ICONV support |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 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 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 66 | ####################################################################### |
| 67 | # End of configuration section. |
| 68 | # |
| 69 | # Please, do not change anything below without programming experience. |
| 70 | ####################################################################### |
| 71 | |
| 72 | VIMPROG = <->vim.exe |
| 73 | |
| 74 | .SUFFIXES : .out .in |
| 75 | |
Bram Moolenaar | 1ab74a5 | 2019-05-31 20:02:53 +0200 | [diff] [blame] | 76 | SCRIPT = test1.out \ |
Bram Moolenaar | 72fcf07 | 2019-05-27 22:21:44 +0200 | [diff] [blame] | 77 | test39.out \ |
Bram Moolenaar | 430dc5d | 2017-11-02 21:04:47 +0100 | [diff] [blame] | 78 | test42.out test44.out test48.out test49.out \ |
Bram Moolenaar | 209d387 | 2017-11-16 21:52:51 +0100 | [diff] [blame] | 79 | test64.out test69.out \ |
Bram Moolenaar | 15993ce | 2017-10-26 20:21:44 +0200 | [diff] [blame] | 80 | test72.out test77a.out test88.out \ |
Bram Moolenaar | 113bf06 | 2019-04-17 16:54:05 +0200 | [diff] [blame] | 81 | test94.out test95.out test99.out \ |
Bram Moolenaar | a703aae | 2017-12-11 22:55:26 +0100 | [diff] [blame] | 82 | test_eval.out |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 83 | |
| 84 | # Known problems: |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 85 | # |
Bram Moolenaar | d2c061d | 2017-06-22 21:42:49 +0200 | [diff] [blame] | 86 | # test59: Failed/Hangs - VMS does not support spell files (file names |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 87 | # with too many dots). |
| 88 | # |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 89 | # test72: bug - Vim hangs at :rename (while rename works well otherwise) |
| 90 | # test78: bug - Vim dies at :recover Xtest |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 91 | # 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] | 92 | # test102: Just ODS-5 supports space and special chars in the filename. |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 93 | # On ODS-2 tests fail. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 94 | |
| 95 | .IFDEF WANT_GUI |
Bram Moolenaar | de5e2c2 | 2016-11-04 20:35:31 +0100 | [diff] [blame] | 96 | SCRIPT_GUI = test16.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 97 | GUI_OPTION = -g |
| 98 | .ENDIF |
| 99 | |
| 100 | .IFDEF WANT_UNIX |
Bram Moolenaar | f0ab01f | 2019-05-06 22:00:00 +0200 | [diff] [blame] | 101 | SCRIPT_UNIX = test10.out test27.out test49.out |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 102 | .ENDIF |
| 103 | |
| 104 | .IFDEF WANT_WIN |
Bram Moolenaar | cada789 | 2018-01-31 19:30:24 +0100 | [diff] [blame] | 105 | SCRIPT_WIN = test52.out |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 106 | .ENDIF |
| 107 | |
| 108 | .IFDEF WANT_SPELL |
Bram Moolenaar | d2c061d | 2017-06-22 21:42:49 +0200 | [diff] [blame] | 109 | SCRIPT_SPELL = test59.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 110 | .ENDIF |
| 111 | |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 112 | .IFDEF WANT_MZSCH |
| 113 | SCRIPT_MZSCH = test70.out |
| 114 | .ENDIF |
| 115 | |
Bram Moolenaar | 4ff4814 | 2018-06-30 21:50:25 +0200 | [diff] [blame] | 116 | .IFDEF HAVE_ODS5 |
| 117 | SCRIPT_ODS5 = test102.out |
| 118 | .ENDIF |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 119 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 120 | .IFDEF HAVE_GDIFF |
| 121 | SCRIPT_GDIFF = test47.out |
| 122 | .ENDIF |
| 123 | |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 124 | .IFDEF HAVE_PYTHON |
| 125 | SCRIPT_PYTHON = test86.out test87.out |
| 126 | .ENDIF |
| 127 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 128 | .in.out : |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 129 | -@ !clean up before doing the test |
| 130 | -@ if "''F$SEARCH("test.out.*")'" .NES. "" then delete/noconfirm/nolog test.out.* |
| 131 | -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then delete/noconfirm/nolog $*.out.* |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 132 | -@ ! define TMP if not set - some tests use it |
| 133 | -@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP [] |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 134 | -@ write sys$output " " |
| 135 | -@ write sys$output "-----------------------------------------------" |
| 136 | -@ write sys$output " "$*" " |
| 137 | -@ write sys$output "-----------------------------------------------" |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 138 | -@ !run the test |
Bram Moolenaar | de5e2c2 | 2016-11-04 20:35:31 +0100 | [diff] [blame] | 139 | -@ 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] | 140 | -@ !analyse the result |
| 141 | -@ directory /size/date test.out |
| 142 | -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename/nolog test.out $*.out |
| 143 | -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then differences /par $*.out $*.ok; |
| 144 | -@ !clean up after the test |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 145 | -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 146 | -@ if "''F$SEARCH("Xtest.*")'" .NES. "" then delete/noconfirm/nolog Xtest.*.* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 147 | |
Bram Moolenaar | 69ea587 | 2019-04-25 20:29:00 +0200 | [diff] [blame] | 148 | all : clean nolog $(START_WITH) $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_WIN) $(SCRIPT_SPELL) $(SCRIPT_ODS5) \ |
Bram Moolenaar | 430dc5d | 2017-11-02 21:04:47 +0100 | [diff] [blame] | 149 | $(SCRIPT_GDIFF) $(SCRIPT_MZSCH) $(SCRIPT_LUA) $(SCRIPT_PYTHON) nolog |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 150 | -@ write sys$output " " |
| 151 | -@ write sys$output "-----------------------------------------------" |
| 152 | -@ write sys$output " All done" |
| 153 | -@ write sys$output "-----------------------------------------------" |
| 154 | -@ deassign sys$output |
| 155 | -@ delete/noconfirm/nolog x*.*.* |
| 156 | -@ type test.log |
| 157 | |
| 158 | nolog : |
| 159 | -@ define sys$output test.log |
| 160 | -@ write sys$output "-----------------------------------------------" |
| 161 | -@ write sys$output " Standard VIM test cases" |
| 162 | -@ write sys$output "-----------------------------------------------" |
| 163 | -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'" |
| 164 | -@ write sys$output " Vim version:" |
| 165 | -@ mcr $(VIMPROG) --version |
| 166 | -@ write sys$output " Test date:" |
| 167 | -@ show time |
| 168 | -@ write sys$output "-----------------------------------------------" |
| 169 | -@ write sys$output " Test results:" |
| 170 | -@ write sys$output "-----------------------------------------------" |
| 171 | -@ write sys$output "MAKE_VMS.MMS options:" |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 172 | -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" " |
| 173 | -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" " |
| 174 | -@ write sys$output " WANT_WIN = ""$(WANT_WIN)"" " |
| 175 | -@ write sys$output " WANT_SPELL = ""$(WANT_SPELL)"" " |
| 176 | -@ write sys$output " WANT_MZSCH = ""$(WANT_MZSCH)"" " |
| 177 | -@ write sys$output " HAVE_ODS5 = ""$(HAVE_ODS5)"" " |
| 178 | -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" " |
| 179 | -@ write sys$output " HAVE_GDIFF = ""$(HAVE_GDIFF)"" " |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 180 | -@ write sys$output " HAVE_ICONV = ""$(HAVE_ICONV)"" " |
| 181 | -@ write sys$output " HAVE_LUA = ""$(HAVE_LUA)"" " |
| 182 | -@ write sys$output " HAVE_PYTHON= ""$(HAVE_PYTHON)"" " |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 183 | -@ write sys$output "Default vimrc file is VMS.VIM:" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 184 | -@ write sys$output "-----------------------------------------------" |
| 185 | -@ type VMS.VIM |
| 186 | |
| 187 | clean : |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 188 | -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.* |
| 189 | -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.* |
| 190 | -@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.* |
| 191 | -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 192 | -@ if "''F$SEARCH("Xtest*.*")'" .NES. "" then delete/noconfirm/nolog Xtest*.*.* |
| 193 | -@ if "''F$SEARCH("XX*.*")'" .NES. "" then delete/noconfirm/nolog XX*.*.* |
| 194 | -@ if "''F$SEARCH("_un_*.*")'" .NES. "" then delete/noconfirm/nolog _un_*.*.* |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 195 | -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.* |
| 196 | -@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.* |
| 197 | -@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.* |
| 198 | -@ if "''F$SEARCH("tiny.vim")'" .NES. "" then delete/noconfirm/nolog tiny.vim.* |
| 199 | -@ if "''F$SEARCH("small.vim")'" .NES. "" then delete/noconfirm/nolog small.vim.* |
| 200 | -@ if "''F$SEARCH("mbyte.vim")'" .NES. "" then delete/noconfirm/nolog mbyte.vim.* |
| 201 | -@ if "''F$SEARCH("mzscheme.vim")'" .NES. "" then delete/noconfirm/nolog mzscheme.vim.* |
| 202 | -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.* |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 203 | |