blob: 767ab7840548e078ba030732c45c5c77568bc276 [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 Moolenaar53180ce2005-07-05 21:48:14 +00007# Last change: 2005 Jul 05
Bram Moolenaar071d4272004-06-13 20:20:40 +00008#
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 \
Bram Moolenaar34cdc3e2005-05-18 22:24:46 +000060 test48.out test51.out test53.out test54.out test55.out \
Bram Moolenaarf4cd3e82005-12-22 22:47:02 +000061 test56.out test57.out test58.out test59.out test60.out
Bram Moolenaar071d4272004-06-13 20:20:40 +000062
63.IFDEF WANT_GUI
64SCRIPT_GUI = test16.out
65GUI_OPTION = -g
66.ENDIF
67
68.IFDEF WANT_UNIX
69SCRIPT_UNIX = test10.out test12.out test25.out test27.out test30.out test49.out
70.ENDIF
71
72.IFDEF HAVE_GZIP
73SCRIPT_GZIP = test11.out
74.ENDIF
75
76.IFDEF HAVE_GDIFF
77SCRIPT_GDIFF = test47.out
78.ENDIF
79
80.in.out :
81 -@ write sys$output " "
82 -@ write sys$output "-----------------------------------------------"
83 -@ write sys$output " "$*" "
84 -@ write sys$output "-----------------------------------------------"
85 -@ create/term/wait mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in
86 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then differences test.out $*.ok;
87 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename test.out $*.out
88 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
89
90all : clean nolog $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_GZIP) $(SCRIPT_GDIFF)
91 -@ 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:"
113 -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" "
114 -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" "
115 -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" "
116 -@ write sys$output " HAVE_GDIFF= ""$(HAVE_GDIFF)"" "
117 -@ write sys$output "Default vimrc file is VMS.VIM:
118 -@ write sys$output "-----------------------------------------------"
119 -@ type VMS.VIM
120
121clean :
122 -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.*
123 -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.*
124 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
125 -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.*