Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | # |
| 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 Moolenaar | 48bae37 | 2010-07-29 23:12:15 +0200 | [diff] [blame] | 7 | # Last change: 2010 Jul 29 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8 | # |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 9 | # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 | |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 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. |
| 38 | # WANT_WIN = YES |
| 39 | |
| 40 | # Comment out if you want to run spell checker tests. |
| 41 | # They fail because VMS does not support file names. |
| 42 | # WANT_SPELL = YES |
| 43 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 44 | # Comment out if you have gzip on your system |
| 45 | # HAVE_GZIP = YES |
| 46 | |
| 47 | # Comment out if you have GNU compatible diff on your system |
| 48 | # HAVE_GDIFF = YES |
| 49 | |
| 50 | ####################################################################### |
| 51 | # End of configuration section. |
| 52 | # |
| 53 | # Please, do not change anything below without programming experience. |
| 54 | ####################################################################### |
| 55 | |
| 56 | VIMPROG = <->vim.exe |
| 57 | |
| 58 | .SUFFIXES : .out .in |
| 59 | |
| 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 \ |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 65 | test28.out test29.out test30.out test31.out test32.out \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 \ |
Bram Moolenaar | 34cdc3e | 2005-05-18 22:24:46 +0000 | [diff] [blame] | 69 | test48.out test51.out test53.out test54.out test55.out \ |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 70 | test56.out test57.out test60.out \ |
Bram Moolenaar | dd31030 | 2009-03-11 15:37:53 +0000 | [diff] [blame] | 71 | test61.out test62.out test63.out test64.out test65.out \ |
Bram Moolenaar | 644fdff | 2010-05-30 13:26:21 +0200 | [diff] [blame] | 72 | test66.out test67.out test68.out test69.out test70.out \ |
Bram Moolenaar | 48bae37 | 2010-07-29 23:12:15 +0200 | [diff] [blame] | 73 | test71.out # test72.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 74 | |
| 75 | .IFDEF WANT_GUI |
| 76 | SCRIPT_GUI = test16.out |
| 77 | GUI_OPTION = -g |
| 78 | .ENDIF |
| 79 | |
| 80 | .IFDEF WANT_UNIX |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 81 | SCRIPT_UNIX = test10.out test12.out test25.out test27.out test49.out |
| 82 | .ENDIF |
| 83 | |
| 84 | .IFDEF WANT_WIN |
| 85 | SCRIPT_WIN = test50.out test52.out |
| 86 | .ENDIF |
| 87 | |
| 88 | .IFDEF WANT_SPELL |
| 89 | SCRIPT_SPELL = test58.out test59.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 90 | .ENDIF |
| 91 | |
| 92 | .IFDEF HAVE_GZIP |
| 93 | SCRIPT_GZIP = test11.out |
| 94 | .ENDIF |
| 95 | |
| 96 | .IFDEF HAVE_GDIFF |
| 97 | SCRIPT_GDIFF = test47.out |
| 98 | .ENDIF |
| 99 | |
| 100 | .in.out : |
| 101 | -@ write sys$output " " |
| 102 | -@ write sys$output "-----------------------------------------------" |
| 103 | -@ write sys$output " "$*" " |
| 104 | -@ write sys$output "-----------------------------------------------" |
| 105 | -@ create/term/wait mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 106 | -@ if "''F$SEARCH("test.out.*")'" .NES. "" then differences /par test.out $*.ok; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 107 | -@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename test.out $*.out |
| 108 | -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
| 109 | |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 110 | all : clean nolog $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_WIN) $(SCRIPT_SPELL) $(SCRIPT_GZIP) $(SCRIPT_GDIFF) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 111 | -@ write sys$output " " |
| 112 | -@ write sys$output "-----------------------------------------------" |
| 113 | -@ write sys$output " All done" |
| 114 | -@ write sys$output "-----------------------------------------------" |
| 115 | -@ deassign sys$output |
| 116 | -@ delete/noconfirm/nolog x*.*.* |
| 117 | -@ type test.log |
| 118 | |
| 119 | nolog : |
| 120 | -@ define sys$output test.log |
| 121 | -@ write sys$output "-----------------------------------------------" |
| 122 | -@ write sys$output " Standard VIM test cases" |
| 123 | -@ write sys$output "-----------------------------------------------" |
| 124 | -@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'" |
| 125 | -@ write sys$output " Vim version:" |
| 126 | -@ mcr $(VIMPROG) --version |
| 127 | -@ write sys$output " Test date:" |
| 128 | -@ show time |
| 129 | -@ write sys$output "-----------------------------------------------" |
| 130 | -@ write sys$output " Test results:" |
| 131 | -@ write sys$output "-----------------------------------------------" |
| 132 | -@ write sys$output "MAKE_VMS.MMS options:" |
| 133 | -@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" " |
| 134 | -@ write sys$output " WANT_UNIX = ""$(WANT_UNIX)"" " |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 135 | -@ write sys$output " WANT_WIN = ""$(WANT_WIN)"" " |
| 136 | -@ write sys$output " WANT_SPELL= ""$(WANT_SPELL)"" " |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 137 | -@ write sys$output " HAVE_GZIP = ""$(HAVE_GZIP)"" " |
| 138 | -@ write sys$output " HAVE_GDIFF= ""$(HAVE_GDIFF)"" " |
| 139 | -@ write sys$output "Default vimrc file is VMS.VIM: |
| 140 | -@ write sys$output "-----------------------------------------------" |
| 141 | -@ type VMS.VIM |
| 142 | |
| 143 | clean : |
| 144 | -@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.* |
| 145 | -@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.* |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 146 | -@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 147 | -@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.* |
| 148 | -@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.* |
Bram Moolenaar | ac98e5d | 2008-09-01 14:51:37 +0000 | [diff] [blame] | 149 | -@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.* |
| 150 | -@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.* |
| 151 | -@ if "''F$SEARCH("tiny.vim")'" .NES. "" then delete/noconfirm/nolog tiny.vim.* |
| 152 | -@ if "''F$SEARCH("small.vim")'" .NES. "" then delete/noconfirm/nolog small.vim.* |
| 153 | -@ if "''F$SEARCH("mbyte.vim")'" .NES. "" then delete/noconfirm/nolog mbyte.vim.* |
| 154 | -@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.* |
| 155 | |