blob: b9871d601a559afca12936325326aac3fb810315 [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 Moolenaar8c8de832008-06-24 22:58:06 +00007# Last change: 2008 Jun 19
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 Moolenaar27dc1952006-03-15 23:06:44 +000061 test56.out test57.out test58.out test59.out test60.out \
Bram Moolenaar8c8de832008-06-24 22:58:06 +000062 test61.out test62.out test63.out test64.out test65.out
Bram Moolenaar071d4272004-06-13 20:20:40 +000063
64.IFDEF WANT_GUI
65SCRIPT_GUI = test16.out
66GUI_OPTION = -g
67.ENDIF
68
69.IFDEF WANT_UNIX
70SCRIPT_UNIX = test10.out test12.out test25.out test27.out test30.out test49.out
71.ENDIF
72
73.IFDEF HAVE_GZIP
74SCRIPT_GZIP = test11.out
75.ENDIF
76
77.IFDEF HAVE_GDIFF
78SCRIPT_GDIFF = test47.out
79.ENDIF
80
81.in.out :
82 -@ write sys$output " "
83 -@ write sys$output "-----------------------------------------------"
84 -@ write sys$output " "$*" "
85 -@ write sys$output "-----------------------------------------------"
86 -@ create/term/wait mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in
87 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then differences test.out $*.ok;
88 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename test.out $*.out
89 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
90
91all : clean nolog $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_GZIP) $(SCRIPT_GDIFF)
92 -@ write sys$output " "
93 -@ write sys$output "-----------------------------------------------"
94 -@ write sys$output " All done"
95 -@ write sys$output "-----------------------------------------------"
96 -@ deassign sys$output
97 -@ delete/noconfirm/nolog x*.*.*
98 -@ type test.log
99
100nolog :
101 -@ define sys$output test.log
102 -@ write sys$output "-----------------------------------------------"
103 -@ write sys$output " Standard VIM test cases"
104 -@ write sys$output "-----------------------------------------------"
105 -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'"
106 -@ write sys$output " Vim version:"
107 -@ mcr $(VIMPROG) --version
108 -@ write sys$output " Test date:"
109 -@ show time
110 -@ write sys$output "-----------------------------------------------"
111 -@ write sys$output " Test results:"
112 -@ write sys$output "-----------------------------------------------"
113 -@ write sys$output "MAKE_VMS.MMS options:"
114 -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" "
115 -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" "
116 -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" "
117 -@ write sys$output " HAVE_GDIFF= ""$(HAVE_GDIFF)"" "
118 -@ write sys$output "Default vimrc file is VMS.VIM:
119 -@ write sys$output "-----------------------------------------------"
120 -@ type VMS.VIM
121
122clean :
123 -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.*
124 -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.*
125 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
126 -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.*