blob: ad213950088761c6836c22ff200b7b4b312cb156 [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 Moolenaara7251492021-01-02 16:53:13 +01007# Last change: 2020 Aug 14
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 Moolenaarb96a32e2020-08-13 18:59:55 +020040SCRIPT = test20.out test21.out test22.out test23.out test24.out \
41 test25.out test26.out test27.out \
42 test77a.out
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020043
Bram Moolenaar071d4272004-06-13 20:20:40 +000044.IFDEF WANT_GUI
Bram Moolenaar071d4272004-06-13 20:20:40 +000045GUI_OPTION = -g
46.ENDIF
47
Bram Moolenaar071d4272004-06-13 20:20:40 +000048.in.out :
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020049 -@ !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 Moolenaar206f0112014-03-12 16:51:55 +010052 -@ ! define TMP if not set - some tests use it
53 -@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP []
Bram Moolenaar071d4272004-06-13 20:20:40 +000054 -@ write sys$output " "
55 -@ write sys$output "-----------------------------------------------"
56 -@ write sys$output " "$*" "
57 -@ write sys$output "-----------------------------------------------"
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020058 -@ !run the test
Christian Brabandteb380b92025-07-07 20:53:55 +020059 -@ create/term/wait/nodetach mcr $(VIMPROG) $(GUI_OPTION) -u util/vms.vim --noplugin -s dotest.in $*.in
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020060 -@ !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 Moolenaar071d4272004-06-13 20:20:40 +000065 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
Bram Moolenaar206f0112014-03-12 16:51:55 +010066 -@ if "''F$SEARCH("Xtest.*")'" .NES. "" then delete/noconfirm/nolog Xtest.*.*
Bram Moolenaar071d4272004-06-13 20:20:40 +000067
Bram Moolenaarf7c4d832020-08-11 20:42:19 +020068all : clean nolog $(START_WITH) $(SCRIPT) nolog
Bram Moolenaar071d4272004-06-13 20:20:40 +000069 -@ 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
77nolog :
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 Moolenaar206f0112014-03-12 16:51:55 +010091 -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" "
Christian Brabandteb380b92025-07-07 20:53:55 +020092 -@ write sys$output "Default vimrc file is util/VMS.VIM:"
Bram Moolenaar071d4272004-06-13 20:20:40 +000093 -@ write sys$output "-----------------------------------------------"
Christian Brabandteb380b92025-07-07 20:53:55 +020094 -@ type util/VMS.VIM
Bram Moolenaar071d4272004-06-13 20:20:40 +000095
96clean :
Bram Moolenaarf878bcf2010-07-30 22:29:41 +020097 -@ 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 Moolenaar206f0112014-03-12 16:51:55 +0100101 -@ 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 Moolenaarf878bcf2010-07-30 22:29:41 +0200104 -@ 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 Moolenaarf878bcf2010-07-30 22:29:41 +0200107 -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.*
Bram Moolenaarac98e5d2008-09-01 14:51:37 +0000108