blob: 4ec49d505f8342000377fd7b20661c879b55c5f6 [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
Bram Moolenaarfda37292014-11-05 14:27:36 +010015CAT = cat
Bram Moolenaar34b6cb12008-09-20 14:27:03 +000016DIRSLASH = /
17else
18DEL = del
19MV = rename
20CP = copy
Bram Moolenaarfda37292014-11-05 14:27:36 +010021CAT = type
Bram Moolenaar34b6cb12008-09-20 14:27:03 +000022DIRSLASH = \\
23endif
24
25VIMPROG = ..$(DIRSLASH)vim
26
27# Omitted:
28# test2 "\\tmp" doesn't work.
29# test10 'errorformat' is different
30# test12 can't unlink a swap file
31# test25 uses symbolic link
32# test27 can't edit file with "*" in file name
Bram Moolenaaree0ee2a2013-07-03 21:19:07 +020033# test97 \{ and \$ are not escaped characters.
Bram Moolenaar34b6cb12008-09-20 14:27:03 +000034
35SCRIPTS16 = test1.out test19.out test20.out test22.out \
36 test23.out test24.out test28.out test29.out \
37 test35.out test36.out test43.out \
38 test44.out test45.out test46.out test47.out \
39 test48.out test51.out test53.out \
40 test55.out test56.out test57.out test58.out test59.out \
41 test60.out test61.out test62.out test63.out test64.out
42
43# Had to remove test54 which doesn't work yet.
44# test54.out
45
46SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
47 test8.out test9.out test11.out test13.out test14.out \
48 test15.out test17.out test18.out test21.out test26.out \
49 test30.out test31.out test32.out test33.out test34.out \
50 test37.out test38.out test39.out test40.out test41.out \
Bram Moolenaarf11021b2009-11-17 16:57:14 +000051 test42.out test52.out test65.out test66.out test67.out \
Bram Moolenaar680eeca2010-10-20 17:44:42 +020052 test68.out test69.out test71.out test72.out test73.out \
Bram Moolenaar978287b2011-06-19 04:32:15 +020053 test74.out test75.out test76.out test77.out test78.out \
Bram Moolenaar913077c2012-03-28 19:59:04 +020054 test79.out test80.out test81.out test82.out test83.out \
Bram Moolenaarf4e5e862013-02-13 15:44:26 +010055 test84.out test85.out test86.out test87.out test88.out \
Bram Moolenaare3e6e572013-04-12 13:45:02 +020056 test89.out test90.out test91.out test92.out test93.out \
Bram Moolenaarc1c023e2013-11-07 03:26:06 +010057 test94.out test95.out test96.out test98.out test99.out \
Bram Moolenaar26df0922014-02-23 23:39:13 +010058 test100.out test101.out test102.out test103.out test104.out \
Bram Moolenaarc35b0fb2014-05-29 11:47:40 +020059 test105.out test106.out test107.out \
Bram Moolenaar4bde00c2015-01-20 19:31:02 +010060 test_argument_0count.out \
Bram Moolenaarb96a7f32014-11-27 16:22:48 +010061 test_argument_count.out \
Bram Moolenaard69bd9a2014-04-29 12:15:40 +020062 test_autoformat_join.out \
Bram Moolenaar597a4222014-06-25 14:39:50 +020063 test_breakindent.out \
Bram Moolenaar23fb7a92014-07-30 14:05:00 +020064 test_changelist.out \
Bram Moolenaarb96a7f32014-11-27 16:22:48 +010065 test_close_count.out \
Bram Moolenaarf1d6ccf2014-12-08 04:16:44 +010066 test_command_count.out \
Bram Moolenaar310f2d52015-03-24 17:49:51 +010067 test_erasebackword.out \
Bram Moolenaarb7cb42b2014-04-02 19:55:10 +020068 test_eval.out \
Bram Moolenaar4f5ce332014-07-30 16:00:58 +020069 test_insertcount.out \
Bram Moolenaarb5cf6c32014-08-16 18:36:43 +020070 test_listlbr.out \
71 test_listlbr_utf8.out \
Bram Moolenaarbdef5182014-10-21 16:22:17 +020072 test_mapping.out \
Bram Moolenaarf65aad52015-02-17 13:43:40 +010073 test_marks.out \
Bram Moolenaaref923902014-12-13 21:00:55 +010074 test_nested_function.out \
Bram Moolenaarb5cf6c32014-08-16 18:36:43 +020075 test_options.out \
76 test_qf_title.out \
Bram Moolenaar482a2b52014-10-21 20:57:15 +020077 test_signs.out \
Bram Moolenaar438b64a2015-03-13 15:03:00 +010078 test_textobjects.out \
Bram Moolenaarb5cf6c32014-08-16 18:36:43 +020079 test_utf8.out
Bram Moolenaar34b6cb12008-09-20 14:27:03 +000080
Bram Moolenaar7e506b62010-01-19 15:55:06 +010081SCRIPTS32 = test50.out test70.out
Bram Moolenaar34b6cb12008-09-20 14:27:03 +000082
83SCRIPTS_GUI = test16.out
84
Bram Moolenaarfda37292014-11-05 14:27:36 +010085SCRIPTS_BENCH = bench_re_freeze.out
86
Bram Moolenaar34b6cb12008-09-20 14:27:03 +000087.SUFFIXES: .in .out
88
89vimall: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS32)
90 echo ALL DONE
91
92nongui: fixff $(SCRIPTS16) $(SCRIPTS)
93 echo ALL DONE
94
Bram Moolenaarfda37292014-11-05 14:27:36 +010095benchmark: $(SCRIPTS_BENCH)
96
Bram Moolenaar34b6cb12008-09-20 14:27:03 +000097small:
98 echo ALL DONE
99
100gui: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI)
101 echo ALL DONE
102
103win32: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS32)
104 echo ALL DONE
105
106fixff:
107 -$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=dos|upd" +q *.in *.ok
Bram Moolenaar09210ac2012-04-13 19:11:20 +0200108 -$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=unix|upd" +q \
109 dotest.in test60.ok test71.ok test74.ok
Bram Moolenaar34b6cb12008-09-20 14:27:03 +0000110
111clean:
112 -$(DEL) *.out
113 -$(DEL) test.ok
114 -$(DEL) small.vim
115 -$(DEL) tiny.vim
116 -$(DEL) mbyte.vim
Bram Moolenaar7e506b62010-01-19 15:55:06 +0100117 -$(DEL) mzscheme.vim
Bram Moolenaarb35c3382012-10-06 19:10:35 +0200118 -$(DEL) lua.vim
Bram Moolenaar34b6cb12008-09-20 14:27:03 +0000119 -$(DEL) X*
120 -$(DEL) viminfo
121
122.in.out:
123 $(CP) $*.ok test.ok
124 $(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $*.in
125 diff test.out $*.ok
126 -$(DEL) $*.out
127 $(MV) test.out $*.out
128 -$(DEL) X*
129 -$(DEL) test.ok
130 -$(DEL) viminfo
Bram Moolenaarfda37292014-11-05 14:27:36 +0100131
132bench_re_freeze.out: bench_re_freeze.vim
133 -$(DEL) benchmark.out
134 $(VIMPROG) -u dos.vim -U NONE --noplugin $*.in
135 $(CAT) benchmark.out