blob: 12fe8c0a17d0134d0c65e643968057687488200f [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#
Bram Moolenaar68392722010-07-30 22:04:17 +02002# Makefile to run all tests for Vim, on OS/2
Bram Moolenaar071d4272004-06-13 20:20:40 +00003#
Bram Moolenaar7b6156f2015-12-28 16:01:26 +01004# OUTDATED, probably doesn't work.
5#
Bram Moolenaar071d4272004-06-13 20:20:40 +00006# Requires a set of Unix tools: echo, diff, etc.
Bram Moolenaar7b6156f2015-12-28 16:01:26 +01007#
Bram Moolenaar071d4272004-06-13 20:20:40 +00008
9VIMPROG = ../vim.exe
10
Bram Moolenaar7b6156f2015-12-28 16:01:26 +010011include Make_all.mak
12
Bram Moolenaar071d4272004-06-13 20:20:40 +000013# Omitted:
14# test2 "\\tmp" doesn't work.
15# test10 'errorformat' is different
16# test11 requires sed
17# test12 can't unlink a swap file
18# test25 uses symbolic link
19# test27 can't edit file with "*" in file name
20# test52 only for Win32
Bram Moolenaar98411e52012-04-05 16:56:52 +020021# test85 no Lua interface
Bram Moolenaardb913952012-06-29 12:54:53 +020022# test86, 87 no Python interface
Bram Moolenaaree0ee2a2013-07-03 21:19:07 +020023# test97 \{ and \$ are not escaped characters.
Bram Moolenaar071d4272004-06-13 20:20:40 +000024
Bram Moolenaar7b6156f2015-12-28 16:01:26 +010025SCRIPTS = $(SCRIPTS_ALL) $(SCRIPTS_MORE3) $(SCRIPTS_MORE4)
Bram Moolenaar071d4272004-06-13 20:20:40 +000026
Bram Moolenaarfda37292014-11-05 14:27:36 +010027SCRIPTS_BENCH = bench_re_freeze.out
28
Bram Moolenaar071d4272004-06-13 20:20:40 +000029.SUFFIXES: .in .out
30
31all: /tmp $(SCRIPTS)
32 @echo ALL DONE
33
34$(SCRIPTS): $(VIMPROG)
35
Bram Moolenaarfda37292014-11-05 14:27:36 +010036benchmark: $(SCRIPTS_BENCH)
37
Bram Moolenaar071d4272004-06-13 20:20:40 +000038clean:
39 -rm -rf *.out Xdotest test.ok tiny.vim small.vim mbyte.vim viminfo
40
41# Make sure all .in and .out files are in DOS fileformat.
42.in.out:
43 $(VIMPROG) -u NONE -s todos.vim $*.in
44 $(VIMPROG) -u NONE -s todos.vim $*.ok
45 copy $*.ok test.ok
46 $(VIMPROG) -u os2.vim --noplugin -s dotest.in $*.in
47 $(VIMPROG) -u NONE -s todos.vim test.out
48 diff test.out $*.ok
49 rename test.out $*.out
50 -rm -rf X* viminfo
51 -del test.ok
52
53# Create a directory for temp files
54/tmp:
55 -mkdir /tmp
Bram Moolenaarfda37292014-11-05 14:27:36 +010056
57bench_re_freeze.out: bench_re_freeze.vim
58 -del $*.failed test.ok benchmark.out
59 copy $*.ok test.ok
60 $(VIMPROG) -u os2.vim --noplugin -s dotest.in $*.in
61 type benchmark.out
62