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 | a725149 | 2021-01-02 16:53:13 +0100 | [diff] [blame] | 7 | # Last change: 2020 Aug 14 |
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 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 30 | ####################################################################### |
| 31 | # End of configuration section. |
| 32 | # |
| 33 | # Please, do not change anything below without programming experience. |
| 34 | ####################################################################### |
| 35 | |
| 36 | VIMPROG = <->vim.exe |
| 37 | |
| 38 | .SUFFIXES : .out .in |
| 39 | |
Bram Moolenaar | b96a32e | 2020-08-13 18:59:55 +0200 | [diff] [blame] | 40 | SCRIPT = test20.out test21.out test22.out test23.out test24.out \ |
| 41 | test25.out test26.out test27.out \ |
| 42 | test77a.out |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 43 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 44 | .IFDEF WANT_GUI |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 45 | GUI_OPTION = -g |
| 46 | .ENDIF |
| 47 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 48 | .in.out : |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 49 | -@ !clean up before doing the test |
| 50 | -@ if "''F$SEARCH("test.out.*")'" .NES. "" then delete/noconfirm/nolog test.out.* |
| 51 | -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then delete/noconfirm/nolog $*.out.* |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 52 | -@ ! define TMP if not set - some tests use it |
| 53 | -@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP [] |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 54 | -@ write sys$output " " |
| 55 | -@ write sys$output "-----------------------------------------------" |
| 56 | -@ write sys$output " "$*" " |
| 57 | -@ write sys$output "-----------------------------------------------" |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 58 | -@ !run the test |
Christian Brabandt | eb380b9 | 2025-07-07 20:53:55 +0200 | [diff] [blame] | 59 | -@ create/term/wait/nodetach mcr $(VIMPROG) $(GUI_OPTION) -u util/vms.vim --noplugin -s dotest.in $*.in |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 60 | -@ !analyse the result |
| 61 | -@ directory /size/date test.out |
| 62 | -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename/nolog test.out $*.out |
| 63 | -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then differences /par $*.out $*.ok; |
| 64 | -@ !clean up after the test |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 65 | -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 66 | -@ if "''F$SEARCH("Xtest.*")'" .NES. "" then delete/noconfirm/nolog Xtest.*.* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 67 | |
Bram Moolenaar | f7c4d83 | 2020-08-11 20:42:19 +0200 | [diff] [blame] | 68 | all : clean nolog $(START_WITH) $(SCRIPT) nolog |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 69 | -@ write sys$output " " |
| 70 | -@ write sys$output "-----------------------------------------------" |
| 71 | -@ write sys$output " All done" |
| 72 | -@ write sys$output "-----------------------------------------------" |
| 73 | -@ deassign sys$output |
| 74 | -@ delete/noconfirm/nolog x*.*.* |
| 75 | -@ type test.log |
| 76 | |
| 77 | nolog : |
| 78 | -@ define sys$output test.log |
| 79 | -@ write sys$output "-----------------------------------------------" |
| 80 | -@ write sys$output " Standard VIM test cases" |
| 81 | -@ write sys$output "-----------------------------------------------" |
| 82 | -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'" |
| 83 | -@ write sys$output " Vim version:" |
| 84 | -@ mcr $(VIMPROG) --version |
| 85 | -@ write sys$output " Test date:" |
| 86 | -@ show time |
| 87 | -@ write sys$output "-----------------------------------------------" |
| 88 | -@ write sys$output " Test results:" |
| 89 | -@ write sys$output "-----------------------------------------------" |
| 90 | -@ write sys$output "MAKE_VMS.MMS options:" |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 91 | -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" " |
Christian Brabandt | eb380b9 | 2025-07-07 20:53:55 +0200 | [diff] [blame] | 92 | -@ write sys$output "Default vimrc file is util/VMS.VIM:" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 93 | -@ write sys$output "-----------------------------------------------" |
Christian Brabandt | eb380b9 | 2025-07-07 20:53:55 +0200 | [diff] [blame] | 94 | -@ type util/VMS.VIM |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 95 | |
| 96 | clean : |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 97 | -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.* |
| 98 | -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.* |
| 99 | -@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.* |
| 100 | -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
Bram Moolenaar | 206f011 | 2014-03-12 16:51:55 +0100 | [diff] [blame] | 101 | -@ if "''F$SEARCH("Xtest*.*")'" .NES. "" then delete/noconfirm/nolog Xtest*.*.* |
| 102 | -@ if "''F$SEARCH("XX*.*")'" .NES. "" then delete/noconfirm/nolog XX*.*.* |
| 103 | -@ if "''F$SEARCH("_un_*.*")'" .NES. "" then delete/noconfirm/nolog _un_*.*.* |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 104 | -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.* |
| 105 | -@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.* |
| 106 | -@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.* |
Bram Moolenaar | f878bcf | 2010-07-30 22:29:41 +0200 | [diff] [blame] | 107 | -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.* |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 108 | |