blob: 6ae101b070e0230c3cb5c761ea22084621474944 [file] [log] [blame]
Bram Moolenaar68392722010-07-30 22:04:17 +02001#
2# Makefile to run all tests for Vim, on Dos-like machines
Bram Moolenaar34b6cb12008-09-20 14:27:03 +00003# with sh.exe or zsh.exe in the path or not.
4#
5# Author: Bill McCarthy
6#
7# Note that test54 has been removed until it is fixed.
8#
9# Requires a set of Unix tools: echo, diff, etc.
10
11ifneq (sh.exe, $(SHELL))
12DEL = rm -f
13MV = mv
14CP = cp
15DIRSLASH = /
16else
17DEL = del
18MV = rename
19CP = copy
20DIRSLASH = \\
21endif
22
23VIMPROG = ..$(DIRSLASH)vim
24
25# Omitted:
26# test2 "\\tmp" doesn't work.
27# test10 'errorformat' is different
28# test12 can't unlink a swap file
29# test25 uses symbolic link
30# test27 can't edit file with "*" in file name
31# test31 16 bit version runs out of memory...
32
33SCRIPTS16 = test1.out test19.out test20.out test22.out \
34 test23.out test24.out test28.out test29.out \
35 test35.out test36.out test43.out \
36 test44.out test45.out test46.out test47.out \
37 test48.out test51.out test53.out \
38 test55.out test56.out test57.out test58.out test59.out \
39 test60.out test61.out test62.out test63.out test64.out
40
41# Had to remove test54 which doesn't work yet.
42# test54.out
43
44SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
45 test8.out test9.out test11.out test13.out test14.out \
46 test15.out test17.out test18.out test21.out test26.out \
47 test30.out test31.out test32.out test33.out test34.out \
48 test37.out test38.out test39.out test40.out test41.out \
Bram Moolenaarf11021b2009-11-17 16:57:14 +000049 test42.out test52.out test65.out test66.out test67.out \
Bram Moolenaar680eeca2010-10-20 17:44:42 +020050 test68.out test69.out test71.out test72.out test73.out \
Bram Moolenaar978287b2011-06-19 04:32:15 +020051 test74.out test75.out test76.out test77.out test78.out \
Bram Moolenaar913077c2012-03-28 19:59:04 +020052 test79.out test80.out test81.out test82.out test83.out \
Bram Moolenaarf4e5e862013-02-13 15:44:26 +010053 test84.out test85.out test86.out test87.out test88.out \
Bram Moolenaare3e6e572013-04-12 13:45:02 +020054 test89.out test90.out test91.out test92.out test93.out \
55 test94.out
Bram Moolenaar34b6cb12008-09-20 14:27:03 +000056
Bram Moolenaar7e506b62010-01-19 15:55:06 +010057SCRIPTS32 = test50.out test70.out
Bram Moolenaar34b6cb12008-09-20 14:27:03 +000058
59SCRIPTS_GUI = test16.out
60
61.SUFFIXES: .in .out
62
63vimall: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS32)
64 echo ALL DONE
65
66nongui: fixff $(SCRIPTS16) $(SCRIPTS)
67 echo ALL DONE
68
69small:
70 echo ALL DONE
71
72gui: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI)
73 echo ALL DONE
74
75win32: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS32)
76 echo ALL DONE
77
78fixff:
79 -$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=dos|upd" +q *.in *.ok
Bram Moolenaar09210ac2012-04-13 19:11:20 +020080 -$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=unix|upd" +q \
81 dotest.in test60.ok test71.ok test74.ok
Bram Moolenaar34b6cb12008-09-20 14:27:03 +000082
83clean:
84 -$(DEL) *.out
85 -$(DEL) test.ok
86 -$(DEL) small.vim
87 -$(DEL) tiny.vim
88 -$(DEL) mbyte.vim
Bram Moolenaar7e506b62010-01-19 15:55:06 +010089 -$(DEL) mzscheme.vim
Bram Moolenaarb35c3382012-10-06 19:10:35 +020090 -$(DEL) lua.vim
Bram Moolenaar34b6cb12008-09-20 14:27:03 +000091 -$(DEL) X*
92 -$(DEL) viminfo
93
94.in.out:
95 $(CP) $*.ok test.ok
96 $(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $*.in
97 diff test.out $*.ok
98 -$(DEL) $*.out
99 $(MV) test.out $*.out
100 -$(DEL) X*
101 -$(DEL) test.ok
102 -$(DEL) viminfo