7
|
1 #
|
|
2 # Makefile to run al tests for Vim
|
|
3 #
|
|
4
|
|
5 VIMPROG = ../vim
|
|
6
|
|
7 SCRIPTS = 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 \
|
40
|
16 test48.out test49.out test51.out test52.out test53.out \
|
294
|
17 test54.out test55.out test56.out test57.out
|
7
|
18
|
|
19 SCRIPTS_GUI = test16.out
|
|
20
|
|
21 .SUFFIXES: .in .out
|
|
22
|
|
23 nongui: nolog $(SCRIPTS)
|
|
24 @echo
|
|
25 @cat test.log
|
|
26 @echo ALL DONE
|
|
27
|
|
28 gui: nolog $(SCRIPTS) $(SCRIPTS_GUI)
|
|
29 @echo
|
|
30 @cat test.log
|
|
31 @echo ALL DONE
|
|
32
|
|
33 $(SCRIPTS) $(SCRIPTS_GUI): $(VIMPROG)
|
|
34
|
|
35 clean:
|
19
|
36 -rm -rf *.out *.failed *.rej *.orig test.log tiny.vim small.vim mbyte.vim test.ok X* viminfo
|
7
|
37
|
|
38 test1.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:
|
342
|
49 -rm -f $*.failed test.ok X* viminfo
|
7
|
50 cp $*.ok test.ok
|
32
|
51 # Sleep a moment to avoid that the xterm title is messed up
|
|
52 @-sleep .2
|
169
|
53 -$(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in $*.in
|
|
54 @/bin/sh -c "if test -f test.out; then\
|
|
55 if diff test.out $*.ok; \
|
|
56 then mv -f test.out $*.out; \
|
|
57 else echo $* FAILED >>test.log; mv -f test.out $*.failed; \
|
|
58 fi \
|
|
59 else echo $* NO OUTPUT >>test.log; \
|
7
|
60 fi"
|
|
61 -rm -rf X* test.ok viminfo
|
|
62
|
|
63 nolog:
|
|
64 -echo Test results: >test.log
|