blob: 828d354b46af6d4e3b737a526244015e1191b7cd [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 Moolenaar40bbcee2015-12-28 22:24:41 +010011default: all
12
Bram Moolenaar7b6156f2015-12-28 16:01:26 +010013include Make_all.mak
14
Bram Moolenaar071d4272004-06-13 20:20:40 +000015# Omitted:
16# test2 "\\tmp" doesn't work.
17# test10 'errorformat' is different
18# test11 requires sed
19# test12 can't unlink a swap file
20# test25 uses symbolic link
21# test27 can't edit file with "*" in file name
22# test52 only for Win32
Bram Moolenaar98411e52012-04-05 16:56:52 +020023# test85 no Lua interface
Bram Moolenaardb913952012-06-29 12:54:53 +020024# test86, 87 no Python interface
Bram Moolenaaree0ee2a2013-07-03 21:19:07 +020025# test97 \{ and \$ are not escaped characters.
Bram Moolenaar071d4272004-06-13 20:20:40 +000026
Bram Moolenaar7b6156f2015-12-28 16:01:26 +010027SCRIPTS = $(SCRIPTS_ALL) $(SCRIPTS_MORE3) $(SCRIPTS_MORE4)
Bram Moolenaar071d4272004-06-13 20:20:40 +000028
Bram Moolenaarfda37292014-11-05 14:27:36 +010029SCRIPTS_BENCH = bench_re_freeze.out
30
Bram Moolenaar071d4272004-06-13 20:20:40 +000031.SUFFIXES: .in .out
32
Bram Moolenaara6082432015-12-28 16:26:45 +010033all: /tmp $(SCRIPTS_FIRST) $(SCRIPTS)
Bram Moolenaar071d4272004-06-13 20:20:40 +000034 @echo ALL DONE
35
Bram Moolenaara6082432015-12-28 16:26:45 +010036$(SCRIPTS_FIRST) $(SCRIPTS): $(VIMPROG)
37
38# Must run test1 first to create small.vim.
39$(SCRIPTS): $(SCRIPTS_FIRST)
Bram Moolenaar071d4272004-06-13 20:20:40 +000040
Bram Moolenaarfda37292014-11-05 14:27:36 +010041benchmark: $(SCRIPTS_BENCH)
42
Bram Moolenaar071d4272004-06-13 20:20:40 +000043clean:
44 -rm -rf *.out Xdotest test.ok tiny.vim small.vim mbyte.vim viminfo
45
46# Make sure all .in and .out files are in DOS fileformat.
47.in.out:
48 $(VIMPROG) -u NONE -s todos.vim $*.in
49 $(VIMPROG) -u NONE -s todos.vim $*.ok
50 copy $*.ok test.ok
51 $(VIMPROG) -u os2.vim --noplugin -s dotest.in $*.in
52 $(VIMPROG) -u NONE -s todos.vim test.out
53 diff test.out $*.ok
54 rename test.out $*.out
55 -rm -rf X* viminfo
56 -del test.ok
57
58# Create a directory for temp files
59/tmp:
60 -mkdir /tmp
Bram Moolenaarfda37292014-11-05 14:27:36 +010061
62bench_re_freeze.out: bench_re_freeze.vim
63 -del $*.failed test.ok benchmark.out
64 copy $*.ok test.ok
65 $(VIMPROG) -u os2.vim --noplugin -s dotest.in $*.in
66 type benchmark.out
67