2 # Makefile to run all tests for Vim on VMS
4 # Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
5 # Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
7 # Last change: 2009 Sep 11
9 # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
10 # Edit the lines in the Configuration section below to select.
13 # mms/descrip=Make_vms.mms
15 # mms/descrip=Make_vms.mms clean
17 # Make files are MMK compatible.
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.
23 #######################################################################
24 # Configuration section.
25 #######################################################################
27 # Uncomment if you want tests in GUI mode. Terminal mode is default.
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.
35 # Comment out if you want to run Win32 specific tests as well, but please
36 # be aware, that on OpenVMS will fail, because of cat, rm, etc commands
37 # and directory handling.
40 # Comment out if you want to run spell checker tests.
41 # They fail because VMS does not support file names.
44 # Comment out if you have gzip on your system
47 # Comment out if you have GNU compatible diff on your system
50 #######################################################################
51 # End of configuration section.
53 # Please, do not change anything below without programming experience.
54 #######################################################################
60 SCRIPT = test1.out test2.out test3.out test4.out test5.out \
61 test6.out test7.out test8.out test9.out test10a.out\
62 test13.out test14.out test15.out test17.out \
63 test18.out test19.out test20.out test21.out test22.out \
64 test23.out test24.out test26.out \
65 test28.out test29.out test30.out test31.out test32.out \
66 test33.out test34.out test35.out test36.out test37.out \
67 test38.out test39.out test40.out test41.out test42.out \
68 test43.out test44.out test45.out test46.out \
69 test48.out test51.out test53.out test54.out test55.out \
70 test56.out test57.out test60.out \
71 test61.out test62.out test63.out test64.out test65.out \
75 SCRIPT_GUI = test16.out
80 SCRIPT_UNIX = test10.out test12.out test25.out test27.out test49.out
84 SCRIPT_WIN = test50.out test52.out
88 SCRIPT_SPELL = test58.out test59.out
92 SCRIPT_GZIP = test11.out
96 SCRIPT_GDIFF = test47.out
100 -@ write sys$output " "
101 -@ write sys$output "-----------------------------------------------"
102 -@ write sys$output " "$*" "
103 -@ write sys$output "-----------------------------------------------"
104 -@ create/term/wait mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in
105 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then differences /par test.out $*.ok;
106 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename test.out $*.out
107 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
109 all : clean nolog $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_WIN) $(SCRIPT_SPELL) $(SCRIPT_GZIP) $(SCRIPT_GDIFF)
110 -@ write sys$output " "
111 -@ write sys$output "-----------------------------------------------"
112 -@ write sys$output " All done"
113 -@ write sys$output "-----------------------------------------------"
114 -@ deassign sys$output
115 -@ delete/noconfirm/nolog x*.*.*
119 -@ define sys$output test.log
120 -@ write sys$output "-----------------------------------------------"
121 -@ write sys$output " Standard VIM test cases"
122 -@ write sys$output "-----------------------------------------------"
123 -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'"
124 -@ write sys$output " Vim version:"
125 -@ mcr $(VIMPROG) --version
126 -@ write sys$output " Test date:"
128 -@ write sys$output "-----------------------------------------------"
129 -@ write sys$output " Test results:"
130 -@ write sys$output "-----------------------------------------------"
131 -@ write sys$output "MAKE_VMS.MMS options:"
132 -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" "
133 -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" "
134 -@ write sys$output " WANT_WIN = ""$(WANT_WIN)"" "
135 -@ write sys$output " WANT_SPELL= ""$(WANT_SPELL)"" "
136 -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" "
137 -@ write sys$output " HAVE_GDIFF= ""$(HAVE_GDIFF)"" "
138 -@ write sys$output "Default vimrc file is VMS.VIM:
139 -@ write sys$output "-----------------------------------------------"
143 -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.*
144 -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.*
145 -@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.*
146 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
147 -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.*
148 -@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.*
149 -@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.*
150 -@ if "''F$SEARCH("tiny.vim")'" .NES. "" then delete/noconfirm/nolog tiny.vim.*
151 -@ if "''F$SEARCH("small.vim")'" .NES. "" then delete/noconfirm/nolog small.vim.*
152 -@ if "''F$SEARCH("mbyte.vim")'" .NES. "" then delete/noconfirm/nolog mbyte.vim.*
153 -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.*