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: 2008 Aug 19
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
74 SCRIPT_GUI = test16.out
79 SCRIPT_UNIX = test10.out test12.out test25.out test27.out test49.out
83 SCRIPT_WIN = test50.out test52.out
87 SCRIPT_SPELL = test58.out test59.out
91 SCRIPT_GZIP = test11.out
95 SCRIPT_GDIFF = test47.out
99 -@ write sys$output " "
100 -@ write sys$output "-----------------------------------------------"
101 -@ write sys$output " "$*" "
102 -@ write sys$output "-----------------------------------------------"
103 -@ create/term/wait mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in
104 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then differences /par test.out $*.ok;
105 -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename test.out $*.out
106 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
108 all : clean nolog $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_WIN) $(SCRIPT_SPELL) $(SCRIPT_GZIP) $(SCRIPT_GDIFF)
109 -@ write sys$output " "
110 -@ write sys$output "-----------------------------------------------"
111 -@ write sys$output " All done"
112 -@ write sys$output "-----------------------------------------------"
113 -@ deassign sys$output
114 -@ delete/noconfirm/nolog x*.*.*
118 -@ define sys$output test.log
119 -@ write sys$output "-----------------------------------------------"
120 -@ write sys$output " Standard VIM test cases"
121 -@ write sys$output "-----------------------------------------------"
122 -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'"
123 -@ write sys$output " Vim version:"
124 -@ mcr $(VIMPROG) --version
125 -@ write sys$output " Test date:"
127 -@ write sys$output "-----------------------------------------------"
128 -@ write sys$output " Test results:"
129 -@ write sys$output "-----------------------------------------------"
130 -@ write sys$output "MAKE_VMS.MMS options:"
131 -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" "
132 -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" "
133 -@ write sys$output " WANT_WIN = ""$(WANT_WIN)"" "
134 -@ write sys$output " WANT_SPELL= ""$(WANT_SPELL)"" "
135 -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" "
136 -@ write sys$output " HAVE_GDIFF= ""$(HAVE_GDIFF)"" "
137 -@ write sys$output "Default vimrc file is VMS.VIM:
138 -@ write sys$output "-----------------------------------------------"
142 -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.*
143 -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.*
144 -@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.*
145 -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
146 -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.*
147 -@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.*
148 -@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.*
149 -@ if "''F$SEARCH("tiny.vim")'" .NES. "" then delete/noconfirm/nolog tiny.vim.*
150 -@ if "''F$SEARCH("small.vim")'" .NES. "" then delete/noconfirm/nolog small.vim.*
151 -@ if "''F$SEARCH("mbyte.vim")'" .NES. "" then delete/noconfirm/nolog mbyte.vim.*
152 -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.*