xref: /vim-8.2.3635/src/testdir/Make_vms.mms (revision cfbc5ee4)
1#
2# Makefile to run all tests for Vim on VMS
3#
4# Authors:	Zoltan Arpadffy, <[email protected]>
5#		Sandor Kopanyi,  <[email protected]>
6#
7# Last change:  2004 Jul 02
8#
9# This has been tested on VMS 6.2 to 7.2 on DEC Alpha and VAX.
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
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
41#######################################################################
42# End of configuration section.
43#
44# Please, do not change anything below without programming experience.
45#######################################################################
46
47VIMPROG = <->vim.exe
48
49.SUFFIXES : .out .in
50
51SCRIPT = test1.out  test2.out  test3.out  test4.out  test5.out  \
52	 test6.out  test7.out  test8.out  test9.out  test10a.out\
53	 test13.out test14.out test15.out test17.out \
54	 test18.out test19.out test20.out test21.out test22.out \
55	 test23.out test24.out test26.out \
56	 test28.out test29.out test31.out test32.out \
57	 test33.out test34.out test35.out test36.out test37.out \
58	 test38.out test39.out test40.out test41.out test42.out \
59	 test43.out test44.out test45.out test46.out \
60	 test48.out test51.out test53.out
61
62.IFDEF WANT_GUI
63SCRIPT_GUI = test16.out
64GUI_OPTION = -g
65.ENDIF
66
67.IFDEF WANT_UNIX
68SCRIPT_UNIX = test10.out test12.out test25.out test27.out test30.out test49.out
69.ENDIF
70
71.IFDEF HAVE_GZIP
72SCRIPT_GZIP = test11.out
73.ENDIF
74
75.IFDEF HAVE_GDIFF
76SCRIPT_GDIFF = test47.out
77.ENDIF
78
79.in.out :
80	-@ write sys$output " "
81	-@ write sys$output "-----------------------------------------------"
82	-@ write sys$output "                "$*" "
83	-@ write sys$output "-----------------------------------------------"
84	-@ create/term/wait mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in
85	-@ if "''F$SEARCH("test.out.*")'" .NES. "" then differences test.out $*.ok;
86	-@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename test.out $*.out
87	-@ if "''F$SEARCH("Xdotest.*")'"  .NES. "" then delete/noconfirm/nolog Xdotest.*.*
88
89all : clean nolog $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_GZIP) $(SCRIPT_GDIFF)
90	-@ write sys$output " "
91	-@ write sys$output "-----------------------------------------------"
92	-@ write sys$output "                All done"
93	-@ write sys$output "-----------------------------------------------"
94	-@ deassign sys$output
95	-@ delete/noconfirm/nolog x*.*.*
96	-@ type test.log
97
98nolog :
99	-@ define sys$output test.log
100	-@ write sys$output "-----------------------------------------------"
101	-@ write sys$output "           Standard VIM test cases"
102	-@ write sys$output "-----------------------------------------------"
103	-@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'"
104	-@ write sys$output " Vim version:"
105	-@ mcr $(VIMPROG) --version
106	-@ write sys$output " Test date:"
107	-@ show time
108	-@ write sys$output "-----------------------------------------------"
109	-@ write sys$output "                Test results:"
110	-@ write sys$output "-----------------------------------------------"
111	-@ write sys$output "MAKE_VMS.MMS options:"
112	-@ write sys$output "   WANT_GUI  = ""$(WANT_GUI)"" "
113	-@ write sys$output "   WANT_UNIX = ""$(WANT_UNIX)"" "
114	-@ write sys$output "   HAVE_GZIP = ""$(HAVE_GZIP)"" "
115	-@ write sys$output "   HAVE_GDIFF= ""$(HAVE_GDIFF)"" "
116	-@ write sys$output "Default vimrc file is VMS.VIM:
117	-@ write sys$output "-----------------------------------------------"
118	-@ type VMS.VIM
119
120clean :
121	-@ if "''F$SEARCH("*.out")'"     .NES. "" then delete/noconfirm/nolog *.out.*
122	-@ if "''F$SEARCH("test.log")'"  .NES. "" then delete/noconfirm/nolog test.log.*
123	-@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
124	-@ if "''F$SEARCH("*.*_sw*")'"   .NES. "" then delete/noconfirm/nolog *.*_sw*.*
125