blob: fd25ab87e934838fbc04117f41f33c349817e58b [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
Bram Moolenaara6082432015-12-28 16:26:45 +010031all: /tmp $(SCRIPTS_FIRST) $(SCRIPTS)
Bram Moolenaar071d4272004-06-13 20:20:40 +000032 @echo ALL DONE
33
Bram Moolenaara6082432015-12-28 16:26:45 +010034$(SCRIPTS_FIRST) $(SCRIPTS): $(VIMPROG)
35
36# Must run test1 first to create small.vim.
37$(SCRIPTS): $(SCRIPTS_FIRST)
Bram Moolenaar071d4272004-06-13 20:20:40 +000038
Bram Moolenaarfda37292014-11-05 14:27:36 +010039benchmark: $(SCRIPTS_BENCH)
40
Bram Moolenaar071d4272004-06-13 20:20:40 +000041clean:
42 -rm -rf *.out Xdotest test.ok tiny.vim small.vim mbyte.vim viminfo
43
44# Make sure all .in and .out files are in DOS fileformat.
45.in.out:
46 $(VIMPROG) -u NONE -s todos.vim $*.in
47 $(VIMPROG) -u NONE -s todos.vim $*.ok
48 copy $*.ok test.ok
49 $(VIMPROG) -u os2.vim --noplugin -s dotest.in $*.in
50 $(VIMPROG) -u NONE -s todos.vim test.out
51 diff test.out $*.ok
52 rename test.out $*.out
53 -rm -rf X* viminfo
54 -del test.ok
55
56# Create a directory for temp files
57/tmp:
58 -mkdir /tmp
Bram Moolenaarfda37292014-11-05 14:27:36 +010059
60bench_re_freeze.out: bench_re_freeze.vim
61 -del $*.failed test.ok benchmark.out
62 copy $*.ok test.ok
63 $(VIMPROG) -u os2.vim --noplugin -s dotest.in $*.in
64 type benchmark.out
65