blob: f36ae6edd83dff135cc13effe04865a7994df24a [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
Bram Moolenaar071d4272004-06-13 20:20:40 +000030#######################################################################
31# End of configuration section.
32#
33# Please, do not change anything below without programming experience.
34#######################################################################
35
36VIMPROG = <->vim.exe
37
38.SUFFIXES : .out .in
39
Bram Moolenaarf7c4d832020-08-11 20:42:19 +020040SCRIPT = test1.out test77a.out
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020041
Bram Moolenaar071d4272004-06-13 20:20:40 +000042.IFDEF WANT_GUI
Bram Moolenaar071d4272004-06-13 20:20:40 +000043GUI_OPTION = -g
44.ENDIF
45
Bram Moolenaar071d4272004-06-13 20:20:40 +000046.in.out :
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020047 -@ !clean up before doing the test
48 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then delete/noconfirm/nolog test.out.*
49 -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then delete/noconfirm/nolog $*.out.*
Bram Moolenaar206f0112014-03-12 16:51:55 +010050 -@ ! define TMP if not set - some tests use it
51 -@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP []
Bram Moolenaar071d4272004-06-13 20:20:40 +000052 -@ write sys$output " "
53 -@ write sys$output "-----------------------------------------------"
54 -@ write sys$output " "$*" "
55 -@ write sys$output "-----------------------------------------------"
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020056 -@ !run the test
Bram Moolenaarde5e2c22016-11-04 20:35:31 +010057 -@ create/term/wait/nodetach mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020058 -@ !analyse the result
59 -@ directory /size/date test.out
60 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename/nolog test.out $*.out
61 -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then differences /par $*.out $*.ok;
62 -@ !clean up after the test
Bram Moolenaar071d4272004-06-13 20:20:40 +000063 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
Bram Moolenaar206f0112014-03-12 16:51:55 +010064 -@ if "''F$SEARCH("Xtest.*")'" .NES. "" then delete/noconfirm/nolog Xtest.*.*
Bram Moolenaar071d4272004-06-13 20:20:40 +000065
Bram Moolenaarf7c4d832020-08-11 20:42:19 +020066all : clean nolog $(START_WITH) $(SCRIPT) nolog
Bram Moolenaar071d4272004-06-13 20:20:40 +000067 -@ write sys$output " "
68 -@ write sys$output "-----------------------------------------------"
69 -@ write sys$output " All done"
70 -@ write sys$output "-----------------------------------------------"
71 -@ deassign sys$output
72 -@ delete/noconfirm/nolog x*.*.*
73 -@ type test.log
74
75nolog :
76 -@ define sys$output test.log
77 -@ write sys$output "-----------------------------------------------"
78 -@ write sys$output " Standard VIM test cases"
79 -@ write sys$output "-----------------------------------------------"
80 -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'"
81 -@ write sys$output " Vim version:"
82 -@ mcr $(VIMPROG) --version
83 -@ write sys$output " Test date:"
84 -@ show time
85 -@ write sys$output "-----------------------------------------------"
86 -@ write sys$output " Test results:"
87 -@ write sys$output "-----------------------------------------------"
88 -@ write sys$output "MAKE_VMS.MMS options:"
Bram Moolenaar206f0112014-03-12 16:51:55 +010089 -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" "
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020090 -@ write sys$output "Default vimrc file is VMS.VIM:"
Bram Moolenaar071d4272004-06-13 20:20:40 +000091 -@ write sys$output "-----------------------------------------------"
92 -@ type VMS.VIM
93
94clean :
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020095 -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.*
96 -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.*
97 -@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.*
98 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
Bram Moolenaar206f0112014-03-12 16:51:55 +010099 -@ if "''F$SEARCH("Xtest*.*")'" .NES. "" then delete/noconfirm/nolog Xtest*.*.*
100 -@ if "''F$SEARCH("XX*.*")'" .NES. "" then delete/noconfirm/nolog XX*.*.*
101 -@ if "''F$SEARCH("_un_*.*")'" .NES. "" then delete/noconfirm/nolog _un_*.*.*
Bram Moolenaarf878bcf2010-07-30 22:29:41 +0200102 -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.*
103 -@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.*
104 -@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.*
105 -@ if "''F$SEARCH("tiny.vim")'" .NES. "" then delete/noconfirm/nolog tiny.vim.*
106 -@ if "''F$SEARCH("small.vim")'" .NES. "" then delete/noconfirm/nolog small.vim.*
107 -@ if "''F$SEARCH("mbyte.vim")'" .NES. "" then delete/noconfirm/nolog mbyte.vim.*
108 -@ if "''F$SEARCH("mzscheme.vim")'" .NES. "" then delete/noconfirm/nolog mzscheme.vim.*
109 -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.*
Bram Moolenaarac98e5d2008-09-01 14:51:37 +0000110