blob: cea4699cad51deaf5fb89805bc50b5fc935fe023 [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 Amiga
Bram Moolenaar071d4272004-06-13 20:20:40 +00003#
4# Requires "rm", "csh" and "diff"!
5
6VIMPROG = /vim
7
Bram Moolenaar40bbcee2015-12-28 22:24:41 +01008default: nongui
9
Bram Moolenaar7b6156f2015-12-28 16:01:26 +010010include Make_all.mak
11
Bram Moolenaar071d4272004-06-13 20:20:40 +000012# These tests don't work (yet):
13# test2 "\\tmp" doesn't work
14# test10 'errorformat' is different
15# test11 "cat" doesn't work properly
16# test12 can't unlink a swap file
17# test25 uses symbolic link
Bram Moolenaar071d4272004-06-13 20:20:40 +000018# test52 only for Win32
Bram Moolenaar98411e52012-04-05 16:56:52 +020019# test85 no Lua interface
Bram Moolenaardb913952012-06-29 12:54:53 +020020# test86, 87 no Python interface
Bram Moolenaar071d4272004-06-13 20:20:40 +000021
Bram Moolenaar7b6156f2015-12-28 16:01:26 +010022SCRIPTS = $(SCRIPTS_ALL) $(SCRIPTS_MORE3) $(SCRIPTS_MORE4)
Bram Moolenaar071d4272004-06-13 20:20:40 +000023
Bram Moolenaara6082432015-12-28 16:26:45 +010024# Must run test1 first to create small.vim.
25$(SCRIPTS) $(SCRIPTS_GUI) $(NEW_TESTS): $(SCRIPTS_FIRST)
26
Bram Moolenaar071d4272004-06-13 20:20:40 +000027.SUFFIXES: .in .out
28
Bram Moolenaara6082432015-12-28 16:26:45 +010029nongui: /tmp $(SCRIPTS_FIRST) $(SCRIPTS)
Bram Moolenaar071d4272004-06-13 20:20:40 +000030 csh -c echo ALL DONE
31
32clean:
33 csh -c \rm -rf *.out /tmp/* Xdotest small.vim tiny.vim mbyte.vim test.ok viminfo
34
35.in.out:
36 copy $*.ok test.ok
37 $(VIMPROG) -u amiga.vim -U NONE --noplugin -s dotest.in $*.in
38 diff test.out $*.ok
39 rename test.out $*.out
40 -delete X#? ALL QUIET
41 -delete test.ok
42
43# Create a directory for temp files
44/tmp:
45 makedir /tmp
46
Bram Moolenaar7b6156f2015-12-28 16:01:26 +010047# Manx requires all dependencies, but we stopped updating them.
48# Delete the .out file(s) to run test(s).