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 | 37dd018 | 2010-11-10 16:54:20 +0100 | [diff] [blame] | 7 | # Last change: 2010 Nov 10 |
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 | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 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 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 48 | # Comment out if you have gzip on your system |
| 49 | # HAVE_GZIP = YES |
| 50 | |
| 51 | # Comment out if you have GNU compatible diff on your system |
| 52 | # HAVE_GDIFF = YES |
| 53 | |
| 54 | ####################################################################### |
| 55 | # End of configuration section. |
| 56 | # |
| 57 | # Please, do not change anything below without programming experience. |
| 58 | ####################################################################### |
| 59 | |
| 60 | VIMPROG = <->vim.exe |
| 61 | |
| 62 | .SUFFIXES : .out .in |
| 63 | |
| 64 | SCRIPT = test1.out test2.out test3.out test4.out test5.out \ |
| 65 | test6.out test7.out test8.out test9.out test10a.out\ |
| 66 | test13.out test14.out test15.out test17.out \ |
| 67 | test18.out test19.out test20.out test21.out test22.out \ |
| 68 | test23.out test24.out test26.out \ |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 69 | test28.out test29.out test30.out test31.out test32.out \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 70 | test33.out test34.out test35.out test36.out test37.out \ |
| 71 | test38.out test39.out test40.out test41.out test42.out \ |
| 72 | test43.out test44.out test45.out test46.out \ |
Bram Moolenaar | 34cdc3e | 2005-05-18 22:24:46 +0000 | [diff] [blame] | 73 | test48.out test51.out test53.out test54.out test55.out \ |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 74 | test56.out test57.out test60.out \ |
Bram Moolenaar | dd31030 | 2009-03-11 15:37:53 +0000 | [diff] [blame] | 75 | test61.out test62.out test63.out test64.out test65.out \ |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 76 | test66.out test67.out test68.out test69.out \ |
Bram Moolenaar | 37dd018 | 2010-11-10 16:54:20 +0100 | [diff] [blame] | 77 | test71.out test72.out test74.out test75.out test76.out |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 78 | |
| 79 | # Known problems: |
| 80 | # Test 30: a problem around mac format - unknown reason |
| 81 | # |
| 82 | # Test 32: VMS is not case sensitive and all filenames are lowercase within Vim |
| 83 | # (this should be changed in order to preserve the original filename) - should |
| 84 | # be fixed. VMS allows just one dot in the filename |
| 85 | # |
| 86 | # Test 58 and 59: Failed/Hangs - VMS does not support spell files (file names |
| 87 | # with too many dots). |
| 88 | # |
| 89 | # Test 72: unknown reason |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 90 | |
| 91 | .IFDEF WANT_GUI |
| 92 | SCRIPT_GUI = test16.out |
| 93 | GUI_OPTION = -g |
| 94 | .ENDIF |
| 95 | |
| 96 | .IFDEF WANT_UNIX |
Bram Moolenaar | 80a7dcf | 2010-08-04 17:07:20 +0200 | [diff] [blame] | 97 | SCRIPT_UNIX = test10.out test12.out test25.out test27.out test49.out test73.out |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 98 | .ENDIF |
| 99 | |
| 100 | .IFDEF WANT_WIN |
| 101 | SCRIPT_WIN = test50.out test52.out |
| 102 | .ENDIF |
| 103 | |
| 104 | .IFDEF WANT_SPELL |
| 105 | SCRIPT_SPELL = test58.out test59.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 106 | .ENDIF |
| 107 | |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 108 | .IFDEF WANT_MZSCH |
| 109 | SCRIPT_MZSCH = test70.out |
| 110 | .ENDIF |
| 111 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 112 | .IFDEF HAVE_GZIP |
| 113 | SCRIPT_GZIP = test11.out |
| 114 | .ENDIF |
| 115 | |
| 116 | .IFDEF HAVE_GDIFF |
| 117 | SCRIPT_GDIFF = test47.out |
| 118 | .ENDIF |
| 119 | |
| 120 | .in.out : |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 121 | -@ !clean up before doing the test |
| 122 | -@ if "''F$SEARCH("test.out.*")'" .NES. "" then delete/noconfirm/nolog test.out.* |
| 123 | -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then delete/noconfirm/nolog $*.out.* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 124 | -@ write sys$output " " |
| 125 | -@ write sys$output "-----------------------------------------------" |
| 126 | -@ write sys$output " "$*" " |
| 127 | -@ write sys$output "-----------------------------------------------" |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 128 | -@ !run the test |
| 129 | -@ create/term/wait/nodetach mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in |
| 130 | -@ !analyse the result |
| 131 | -@ directory /size/date test.out |
| 132 | -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename/nolog test.out $*.out |
| 133 | -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then differences /par $*.out $*.ok; |
| 134 | -@ !clean up after the test |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 135 | -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
| 136 | |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 137 | all : clean nolog $(START_WITH) $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_WIN) $(SCRIPT_SPELL) $(SCRIPT_GZIP) \ |
| 138 | $(SCRIPT_GDIFF) $(SCRIPT_MZSCH) nolog |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 139 | -@ write sys$output " " |
| 140 | -@ write sys$output "-----------------------------------------------" |
| 141 | -@ write sys$output " All done" |
| 142 | -@ write sys$output "-----------------------------------------------" |
| 143 | -@ deassign sys$output |
| 144 | -@ delete/noconfirm/nolog x*.*.* |
| 145 | -@ type test.log |
| 146 | |
| 147 | nolog : |
| 148 | -@ define sys$output test.log |
| 149 | -@ write sys$output "-----------------------------------------------" |
| 150 | -@ write sys$output " Standard VIM test cases" |
| 151 | -@ write sys$output "-----------------------------------------------" |
| 152 | -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'" |
| 153 | -@ write sys$output " Vim version:" |
| 154 | -@ mcr $(VIMPROG) --version |
| 155 | -@ write sys$output " Test date:" |
| 156 | -@ show time |
| 157 | -@ write sys$output "-----------------------------------------------" |
| 158 | -@ write sys$output " Test results:" |
| 159 | -@ write sys$output "-----------------------------------------------" |
| 160 | -@ write sys$output "MAKE_VMS.MMS options:" |
| 161 | -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" " |
| 162 | -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" " |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 163 | -@ write sys$output " WANT_WIN = ""$(WANT_WIN)"" " |
| 164 | -@ write sys$output " WANT_SPELL= ""$(WANT_SPELL)"" " |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 165 | -@ write sys$output " WANT_MZSCH= ""$(WANT_MZSCH)"" " |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 166 | -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" " |
| 167 | -@ write sys$output " HAVE_GDIFF= ""$(HAVE_GDIFF)"" " |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 168 | -@ write sys$output "Default vimrc file is VMS.VIM:" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 169 | -@ write sys$output "-----------------------------------------------" |
| 170 | -@ type VMS.VIM |
| 171 | |
| 172 | clean : |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 173 | -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.* |
| 174 | -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.* |
| 175 | -@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.* |
| 176 | -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
| 177 | -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.* |
| 178 | -@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.* |
| 179 | -@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.* |
| 180 | -@ if "''F$SEARCH("tiny.vim")'" .NES. "" then delete/noconfirm/nolog tiny.vim.* |
| 181 | -@ if "''F$SEARCH("small.vim")'" .NES. "" then delete/noconfirm/nolog small.vim.* |
| 182 | -@ if "''F$SEARCH("mbyte.vim")'" .NES. "" then delete/noconfirm/nolog mbyte.vim.* |
| 183 | -@ if "''F$SEARCH("mzscheme.vim")'" .NES. "" then delete/noconfirm/nolog mzscheme.vim.* |
| 184 | -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.* |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 185 | |