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 | effb0cd | 2020-07-03 21:17:34 +0200 | [diff] [blame] | 7 | # Last change: 2020 Jul 03 |
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 | |
| 35 | # Comment out if you have gzip on your system |
| 36 | # HAVE_GZIP = YES |
| 37 | |
| 38 | # Comment out if you have GNU compatible diff on your system |
| 39 | # HAVE_GDIFF = YES |
| 40 | |
Bram Moolenaar | b96a7f3 | 2014-11-27 16:22:48 +0100 | [diff] [blame] | 41 | # Comment out if you have ICONV support |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 42 | # HAVE_ICONV = YES |
| 43 | |
| 44 | # Comment out if you have LUA support |
| 45 | # HAVE_LUA = YES |
| 46 | |
| 47 | # Comment out if you have PYTHON support |
| 48 | # HAVE_PYTHON = YES |
| 49 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 50 | ####################################################################### |
| 51 | # End of configuration section. |
| 52 | # |
| 53 | # Please, do not change anything below without programming experience. |
| 54 | ####################################################################### |
| 55 | |
| 56 | VIMPROG = <->vim.exe |
| 57 | |
| 58 | .SUFFIXES : .out .in |
| 59 | |
Bram Moolenaar | b61ef01 | 2020-07-29 16:08:21 +0200 | [diff] [blame] | 60 | SCRIPT = test1.out test49.out test77a.out |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 61 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 62 | .IFDEF WANT_GUI |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 63 | GUI_OPTION = -g |
| 64 | .ENDIF |
| 65 | |
| 66 | .IFDEF WANT_UNIX |
Bram Moolenaar | 622b356 | 2020-07-27 20:02:41 +0200 | [diff] [blame] | 67 | SCRIPT_UNIX = test49.out |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 68 | .ENDIF |
| 69 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 70 | .in.out : |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 71 | -@ !clean up before doing the test |
| 72 | -@ if "''F$SEARCH("test.out.*")'" .NES. "" then delete/noconfirm/nolog test.out.* |
| 73 | -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then delete/noconfirm/nolog $*.out.* |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 74 | -@ ! define TMP if not set - some tests use it |
| 75 | -@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP [] |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 76 | -@ write sys$output " " |
| 77 | -@ write sys$output "-----------------------------------------------" |
| 78 | -@ write sys$output " "$*" " |
| 79 | -@ write sys$output "-----------------------------------------------" |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 80 | -@ !run the test |
Bram Moolenaar | de5e2c2 | 2016-11-04 20:35:31 +0100 | [diff] [blame] | 81 | -@ 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] | 82 | -@ !analyse the result |
| 83 | -@ directory /size/date test.out |
| 84 | -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename/nolog test.out $*.out |
| 85 | -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then differences /par $*.out $*.ok; |
| 86 | -@ !clean up after the test |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 87 | -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 88 | -@ if "''F$SEARCH("Xtest.*")'" .NES. "" then delete/noconfirm/nolog Xtest.*.* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 89 | |
Bram Moolenaar | aa970ab | 2020-08-02 16:10:39 +0200 | [diff] [blame] | 90 | all : clean nolog $(START_WITH) $(SCRIPT) $(SCRIPT_UNIX) nolog |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 91 | -@ write sys$output " " |
| 92 | -@ write sys$output "-----------------------------------------------" |
| 93 | -@ write sys$output " All done" |
| 94 | -@ write sys$output "-----------------------------------------------" |
| 95 | -@ deassign sys$output |
| 96 | -@ delete/noconfirm/nolog x*.*.* |
| 97 | -@ type test.log |
| 98 | |
| 99 | nolog : |
| 100 | -@ define sys$output test.log |
| 101 | -@ write sys$output "-----------------------------------------------" |
| 102 | -@ write sys$output " Standard VIM test cases" |
| 103 | -@ write sys$output "-----------------------------------------------" |
| 104 | -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'" |
| 105 | -@ write sys$output " Vim version:" |
| 106 | -@ mcr $(VIMPROG) --version |
| 107 | -@ write sys$output " Test date:" |
| 108 | -@ show time |
| 109 | -@ write sys$output "-----------------------------------------------" |
| 110 | -@ write sys$output " Test results:" |
| 111 | -@ write sys$output "-----------------------------------------------" |
| 112 | -@ write sys$output "MAKE_VMS.MMS options:" |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 113 | -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" " |
| 114 | -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" " |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 115 | -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" " |
| 116 | -@ write sys$output " HAVE_GDIFF = ""$(HAVE_GDIFF)"" " |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 117 | -@ write sys$output " HAVE_ICONV = ""$(HAVE_ICONV)"" " |
| 118 | -@ write sys$output " HAVE_LUA = ""$(HAVE_LUA)"" " |
| 119 | -@ write sys$output " HAVE_PYTHON= ""$(HAVE_PYTHON)"" " |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 120 | -@ write sys$output "Default vimrc file is VMS.VIM:" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 121 | -@ write sys$output "-----------------------------------------------" |
| 122 | -@ type VMS.VIM |
| 123 | |
| 124 | clean : |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 125 | -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.* |
| 126 | -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.* |
| 127 | -@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.* |
| 128 | -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 129 | -@ if "''F$SEARCH("Xtest*.*")'" .NES. "" then delete/noconfirm/nolog Xtest*.*.* |
| 130 | -@ if "''F$SEARCH("XX*.*")'" .NES. "" then delete/noconfirm/nolog XX*.*.* |
| 131 | -@ if "''F$SEARCH("_un_*.*")'" .NES. "" then delete/noconfirm/nolog _un_*.*.* |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 132 | -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.* |
| 133 | -@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.* |
| 134 | -@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.* |
| 135 | -@ if "''F$SEARCH("tiny.vim")'" .NES. "" then delete/noconfirm/nolog tiny.vim.* |
| 136 | -@ if "''F$SEARCH("small.vim")'" .NES. "" then delete/noconfirm/nolog small.vim.* |
| 137 | -@ if "''F$SEARCH("mbyte.vim")'" .NES. "" then delete/noconfirm/nolog mbyte.vim.* |
| 138 | -@ if "''F$SEARCH("mzscheme.vim")'" .NES. "" then delete/noconfirm/nolog mzscheme.vim.* |
| 139 | -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.* |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 140 | |