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 \
|
|
16 test48.out test49.out test51.out test52.out
|
|
17
|
|
18 SCRIPTS_GUI = test16.out
|
|
19
|
|
20 .SUFFIXES: .in .out
|
|
21
|
|
22 nongui: nolog $(SCRIPTS)
|
|
23 @echo
|
|
24 @cat test.log
|
|
25 @echo ALL DONE
|
|
26
|
|
27 gui: nolog $(SCRIPTS) $(SCRIPTS_GUI)
|
|
28 @echo
|
|
29 @cat test.log
|
|
30 @echo ALL DONE
|
|
31
|
|
32 $(SCRIPTS) $(SCRIPTS_GUI): $(VIMPROG)
|
|
33
|
|
34 clean:
|
|
35 -rm -rf *.out *.rej *.orig test.log tiny.vim small.vim mbyte.vim test.ok X* viminfo
|
|
36
|
|
37 test1.out: test1.in
|
|
38 -rm -f $*.failed tiny.vim small.vim mbyte.vim test.ok X* viminfo
|
|
39 $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in $*.in
|
|
40 @/bin/sh -c "if diff test.out $*.ok; \
|
|
41 then mv -f test.out $*.out; \
|
|
42 else echo; \
|
|
43 echo test1 FAILED - Something basic is wrong; \
|
|
44 echo; exit 1; fi"
|
|
45 -rm -rf X* viminfo
|
|
46
|
|
47 .in.out:
|
|
48 -rm -f $*.failed test.ok X*
|
|
49 cp $*.ok test.ok
|
|
50 $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in $*.in
|
|
51 @/bin/sh -c "if diff test.out $*.ok; \
|
|
52 then mv -f test.out $*.out; \
|
|
53 else echo $* FAILED >>test.log; mv -f test.out $*.failed; \
|
|
54 fi"
|
|
55 -rm -rf X* test.ok viminfo
|
|
56
|
|
57 nolog:
|
|
58 -echo Test results: >test.log
|