blob: 59da981b370704b551086b874ef16434d9fa103e [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#
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 Moolenaareffb0cd2020-07-03 21:17:34 +02007# Last change: 2020 Jul 03
Bram Moolenaar071d4272004-06-13 20:20:40 +00008#
Bram Moolenaarac98e5d2008-09-01 14:51:37 +00009# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
Bram Moolenaar071d4272004-06-13 20:20:40 +000010# 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 Moolenaarb96a7f32014-11-27 16:22:48 +010041# Comment out if you have ICONV support
Bram Moolenaar206f0112014-03-12 16:51:55 +010042# 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 Moolenaar071d4272004-06-13 20:20:40 +000050#######################################################################
51# End of configuration section.
52#
53# Please, do not change anything below without programming experience.
54#######################################################################
55
56VIMPROG = <->vim.exe
57
58.SUFFIXES : .out .in
59
Bram Moolenaarb61ef012020-07-29 16:08:21 +020060SCRIPT = test1.out test49.out test77a.out
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020061
Bram Moolenaar071d4272004-06-13 20:20:40 +000062.IFDEF WANT_GUI
Bram Moolenaar071d4272004-06-13 20:20:40 +000063GUI_OPTION = -g
64.ENDIF
65
66.IFDEF WANT_UNIX
Bram Moolenaar622b3562020-07-27 20:02:41 +020067SCRIPT_UNIX = test49.out
Bram Moolenaarac98e5d2008-09-01 14:51:37 +000068.ENDIF
69
Bram Moolenaar071d4272004-06-13 20:20:40 +000070.in.out :
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020071 -@ !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 Moolenaar206f0112014-03-12 16:51:55 +010074 -@ ! define TMP if not set - some tests use it
75 -@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP []
Bram Moolenaar071d4272004-06-13 20:20:40 +000076 -@ write sys$output " "
77 -@ write sys$output "-----------------------------------------------"
78 -@ write sys$output " "$*" "
79 -@ write sys$output "-----------------------------------------------"
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020080 -@ !run the test
Bram Moolenaarde5e2c22016-11-04 20:35:31 +010081 -@ create/term/wait/nodetach mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020082 -@ !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 Moolenaar071d4272004-06-13 20:20:40 +000087 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
Bram Moolenaar206f0112014-03-12 16:51:55 +010088 -@ if "''F$SEARCH("Xtest.*")'" .NES. "" then delete/noconfirm/nolog Xtest.*.*
Bram Moolenaar071d4272004-06-13 20:20:40 +000089
Bram Moolenaaraa970ab2020-08-02 16:10:39 +020090all : clean nolog $(START_WITH) $(SCRIPT) $(SCRIPT_UNIX) nolog
Bram Moolenaar071d4272004-06-13 20:20:40 +000091 -@ 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
99nolog :
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 Moolenaar206f0112014-03-12 16:51:55 +0100113 -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" "
114 -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" "
Bram Moolenaar206f0112014-03-12 16:51:55 +0100115 -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" "
116 -@ write sys$output " HAVE_GDIFF = ""$(HAVE_GDIFF)"" "
Bram Moolenaar206f0112014-03-12 16:51:55 +0100117 -@ write sys$output " HAVE_ICONV = ""$(HAVE_ICONV)"" "
118 -@ write sys$output " HAVE_LUA = ""$(HAVE_LUA)"" "
119 -@ write sys$output " HAVE_PYTHON= ""$(HAVE_PYTHON)"" "
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200120 -@ write sys$output "Default vimrc file is VMS.VIM:"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000121 -@ write sys$output "-----------------------------------------------"
122 -@ type VMS.VIM
123
124clean :
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200125 -@ 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 Moolenaar206f0112014-03-12 16:51:55 +0100129 -@ 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 Moolenaarf878bcf2010-07-30 22:29:41 +0200132 -@ 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 Moolenaarac98e5d2008-09-01 14:51:37 +0000140