annotate src/testdir/Make_vms.mms @ 21608:24cb89db078d v8.2.1354

patch 8.2.1354: test 59 is old style Commit: https://github.com/vim/vim/commit/aa970abd0a987de96321d33db82f70bbceac931b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 2 16:10:39 2020 +0200 patch 8.2.1354: test 59 is old style Problem: Test 59 is old style. Solution: Convert into a new style test. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/6604)
author Bram Moolenaar <Bram@vim.org>
date Sun, 02 Aug 2020 16:15:03 +0200
parents dc1c26547a42
children baccf9e06efe
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 # Makefile to run all tests for Vim on VMS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 # Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 # Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 #
21144
adae19565eea patch 8.2.1123: Python 3 test is old style
Bram Moolenaar <Bram@vim.org>
parents: 21138
diff changeset
7 # Last change: 2020 Jul 03
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 #
1709
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 1624
diff changeset
9 # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 # Edit the lines in the Configuration section below to select.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 # Execute with:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 # mms/descrip=Make_vms.mms
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 # Cleanup with:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 # mms/descrip=Make_vms.mms clean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 # Make files are MMK compatible.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 # NOTE: You can run this script just in X/Window environment. It will
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 # create a new terminals, therefore you have to set up your DISPLAY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 # logical. More info in VMS documentation or with: help set disp.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 #######################################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 # Configuration section.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 #######################################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 # Uncomment if you want tests in GUI mode. Terminal mode is default.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 # WANT_GUI = YES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 # Comment out if you want to run Unix specific tests as well, but please
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 # be aware, that on OpenVMS will fail, because of cat, rm, etc commands
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 # and directory handling.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 # WANT_UNIX = YES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 # Comment out if you have gzip on your system
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 # HAVE_GZIP = YES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 # Comment out if you have GNU compatible diff on your system
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 # HAVE_GDIFF = YES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
6398
5a76e36f07b1 updated for version 7.4.530
Bram Moolenaar <bram@vim.org>
parents: 6307
diff changeset
41 # Comment out if you have ICONV support
5704
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
42 # HAVE_ICONV = YES
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
43
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
44 # Comment out if you have LUA support
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
45 # HAVE_LUA = YES
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
46
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
47 # Comment out if you have PYTHON support
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
48 # HAVE_PYTHON = YES
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
49
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 #######################################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 # End of configuration section.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 # Please, do not change anything below without programming experience.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 #######################################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 VIMPROG = <->vim.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 .SUFFIXES : .out .in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
21532
dc1c26547a42 patch 8.2.1316: test 42 is still old style
Bram Moolenaar <Bram@vim.org>
parents: 21510
diff changeset
60 SCRIPT = test1.out test49.out test77a.out
2441
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
61
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 .IFDEF WANT_GUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 GUI_OPTION = -g
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 .ENDIF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 .IFDEF WANT_UNIX
21510
31cb78014fe4 patch 8.2.1305: some tests are still old style
Bram Moolenaar <Bram@vim.org>
parents: 21489
diff changeset
67 SCRIPT_UNIX = test49.out
1709
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 1624
diff changeset
68 .ENDIF
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 1624
diff changeset
69
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 .in.out :
2441
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
71 -@ !clean up before doing the test
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
72 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then delete/noconfirm/nolog test.out.*
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
73 -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then delete/noconfirm/nolog $*.out.*
5704
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
74 -@ ! define TMP if not set - some tests use it
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
75 -@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP []
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 -@ write sys$output " "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 -@ write sys$output "-----------------------------------------------"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 -@ write sys$output " "$*" "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 -@ write sys$output "-----------------------------------------------"
2441
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
80 -@ !run the test
10328
299f1669c20e commit https://github.com/vim/vim/commit/de5e2c219b99895445fb75ae3541ee69282a5846
Christian Brabandt <cb@256bit.org>
parents: 9756
diff changeset
81 -@ create/term/wait/nodetach mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in
2441
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
82 -@ !analyse the result
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
83 -@ directory /size/date test.out
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
84 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename/nolog test.out $*.out
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
85 -@ if "''F$SEARCH("$*.out.*")'" .NES. "" then differences /par $*.out $*.ok;
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
86 -@ !clean up after the test
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
5704
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
88 -@ if "''F$SEARCH("Xtest.*")'" .NES. "" then delete/noconfirm/nolog Xtest.*.*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
21608
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents: 21532
diff changeset
90 all : clean nolog $(START_WITH) $(SCRIPT) $(SCRIPT_UNIX) nolog
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 -@ write sys$output " "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 -@ write sys$output "-----------------------------------------------"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 -@ write sys$output " All done"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 -@ write sys$output "-----------------------------------------------"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 -@ deassign sys$output
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 -@ delete/noconfirm/nolog x*.*.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 -@ type test.log
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 nolog :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 -@ define sys$output test.log
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 -@ write sys$output "-----------------------------------------------"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 -@ write sys$output " Standard VIM test cases"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 -@ write sys$output "-----------------------------------------------"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 -@ write sys$output " Vim version:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 -@ mcr $(VIMPROG) --version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 -@ write sys$output " Test date:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 -@ show time
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 -@ write sys$output "-----------------------------------------------"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 -@ write sys$output " Test results:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 -@ write sys$output "-----------------------------------------------"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 -@ write sys$output "MAKE_VMS.MMS options:"
5704
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
113 -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" "
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
114 -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" "
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
115 -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" "
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
116 -@ write sys$output " HAVE_GDIFF = ""$(HAVE_GDIFF)"" "
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
117 -@ write sys$output " HAVE_ICONV = ""$(HAVE_ICONV)"" "
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
118 -@ write sys$output " HAVE_LUA = ""$(HAVE_LUA)"" "
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
119 -@ write sys$output " HAVE_PYTHON= ""$(HAVE_PYTHON)"" "
2441
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
120 -@ write sys$output "Default vimrc file is VMS.VIM:"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 -@ write sys$output "-----------------------------------------------"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 -@ type VMS.VIM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 clean :
2441
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
125 -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.*
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
126 -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.*
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
127 -@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.*
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
128 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
5704
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
129 -@ if "''F$SEARCH("Xtest*.*")'" .NES. "" then delete/noconfirm/nolog Xtest*.*.*
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
130 -@ if "''F$SEARCH("XX*.*")'" .NES. "" then delete/noconfirm/nolog XX*.*.*
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
131 -@ if "''F$SEARCH("_un_*.*")'" .NES. "" then delete/noconfirm/nolog _un_*.*.*
2441
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
132 -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.*
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
133 -@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.*
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
134 -@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.*
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
135 -@ if "''F$SEARCH("tiny.vim")'" .NES. "" then delete/noconfirm/nolog tiny.vim.*
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
136 -@ if "''F$SEARCH("small.vim")'" .NES. "" then delete/noconfirm/nolog small.vim.*
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
137 -@ if "''F$SEARCH("mbyte.vim")'" .NES. "" then delete/noconfirm/nolog mbyte.vim.*
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
138 -@ if "''F$SEARCH("mzscheme.vim")'" .NES. "" then delete/noconfirm/nolog mzscheme.vim.*
620a42739426 Improvements for VMS. (Zoltan Arpadffy)
Bram Moolenaar <bram@vim.org>
parents: 2436
diff changeset
139 -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.*
1709
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 1624
diff changeset
140