blob: 2f4ab934a5553b08c1bf4bb813bfaf4a0eb87874 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#
2# Makefile to run al tests for Vim
3#
4
5VIMPROG = ../vim
6
7SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \
8 test7.out test8.out test9.out test10.out test11.out \
9 test12.out test13.out test14.out test15.out test17.out \
10 test18.out test19.out test20.out test21.out test22.out \
11 test23.out test24.out test25.out test26.out test27.out \
12 test28.out test29.out test30.out test31.out test32.out \
13 test33.out test34.out test35.out test36.out test37.out \
14 test38.out test39.out test40.out test41.out test42.out \
15 test43.out test44.out test45.out test46.out test47.out \
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +000016 test48.out test49.out test51.out test52.out test53.out \
17 test54.out
Bram Moolenaar071d4272004-06-13 20:20:40 +000018
19SCRIPTS_GUI = test16.out
20
21.SUFFIXES: .in .out
22
23nongui: nolog $(SCRIPTS)
24 @echo
25 @cat test.log
26 @echo ALL DONE
27
28gui: nolog $(SCRIPTS) $(SCRIPTS_GUI)
29 @echo
30 @cat test.log
31 @echo ALL DONE
32
33$(SCRIPTS) $(SCRIPTS_GUI): $(VIMPROG)
34
35clean:
Bram Moolenaar89cb5e02004-07-19 20:55:54 +000036 -rm -rf *.out *.failed *.rej *.orig test.log tiny.vim small.vim mbyte.vim test.ok X* viminfo
Bram Moolenaar071d4272004-06-13 20:20:40 +000037
38test1.out: test1.in
39 -rm -f $*.failed tiny.vim small.vim mbyte.vim test.ok X* viminfo
40 $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in $*.in
41 @/bin/sh -c "if diff test.out $*.ok; \
42 then mv -f test.out $*.out; \
43 else echo; \
44 echo test1 FAILED - Something basic is wrong; \
45 echo; exit 1; fi"
46 -rm -rf X* viminfo
47
48.in.out:
49 -rm -f $*.failed test.ok X*
50 cp $*.ok test.ok
Bram Moolenaar47136d72004-10-12 20:02:24 +000051 # Sleep a moment to avoid that the xterm title is messed up
52 @-sleep .2
Bram Moolenaar071d4272004-06-13 20:20:40 +000053 $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in $*.in
54 @/bin/sh -c "if diff test.out $*.ok; \
55 then mv -f test.out $*.out; \
56 else echo $* FAILED >>test.log; mv -f test.out $*.failed; \
57 fi"
58 -rm -rf X* test.ok viminfo
59
60nolog:
61 -echo Test results: >test.log