blob: 092b24aaca634e885227a3244b62d841a08f946b [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#
2# Makefile to run al tests for Vim, on Dos-like machines.
3#
4# Requires a set of Unix tools: echo, diff, etc.
5
6VIMPROG = ..\\vim
7
8# Omitted:
9# test2 "\\tmp" doesn't work.
10# test10 'errorformat' is different
11# test12 can't unlink a swap file
12# test25 uses symbolic link
13# test27 can't edit file with "*" in file name
14# test31 16 bit version runs out of memory...
15
16SCRIPTS16 = test1.out test19.out test20.out test22.out \
17 test23.out test24.out test28.out test29.out \
18 test35.out test36.out test43.out \
19 test44.out test45.out test46.out test47.out \
Bram Moolenaara7fc0102005-05-18 22:17:12 +000020 test48.out test51.out test53.out test54.out \
Bram Moolenaar53180ce2005-07-05 21:48:14 +000021 test55.out test56.out test57.out test58.out test59.out
Bram Moolenaar071d4272004-06-13 20:20:40 +000022
23SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
24 test8.out test9.out test11.out test13.out test14.out \
25 test15.out test17.out test18.out test21.out test26.out \
26 test30.out test31.out test32.out test33.out test34.out \
27 test37.out test38.out test39.out test40.out test41.out \
28 test42.out test52.out
29
30SCRIPTS32 = test50.out
31
32SCRIPTS_GUI = test16.out
33
34.SUFFIXES: .in .out
35
Bram Moolenaarb78b0b02005-01-02 11:32:29 +000036nongui: fixff $(SCRIPTS16) $(SCRIPTS)
Bram Moolenaar071d4272004-06-13 20:20:40 +000037 echo ALL DONE
38
Bram Moolenaarb78b0b02005-01-02 11:32:29 +000039small: fixff $(SCRIPTS16)
Bram Moolenaar071d4272004-06-13 20:20:40 +000040 echo ALL DONE
41
Bram Moolenaarb78b0b02005-01-02 11:32:29 +000042gui: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI)
Bram Moolenaar071d4272004-06-13 20:20:40 +000043 echo ALL DONE
44
Bram Moolenaarb78b0b02005-01-02 11:32:29 +000045win32: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS32)
Bram Moolenaar071d4272004-06-13 20:20:40 +000046 echo ALL DONE
47
Bram Moolenaarb78b0b02005-01-02 11:32:29 +000048fixff:
49 -$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=dos|upd" +q *.in *.ok
50
Bram Moolenaar071d4272004-06-13 20:20:40 +000051clean:
52 -del *.out
53 -del test.ok
54 -del small.vim
55 -del tiny.vim
56 -del mbyte.vim
57 -del X*
58 -del viminfo
59
60.in.out:
61 copy $*.ok test.ok
62 $(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $*.in
63 diff test.out $*.ok
64 -del $*.out
65 rename test.out $*.out
66 -del X*
67 -del test.ok
68 -del viminfo