2 # Makefile to run al tests for Vim
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
18 ScriptsGUI = test16.out
20 # Build "nongui" when no target was specified.
21 nongui: newlog $Scripts
26 # Build "ngui" when specified.
27 gui: newlog $Scripts $ScriptsGUI
32 $Scripts $ScriptsGUI: $VimProg
35 :del {r}{force} *.out test.log tiny.vim small.vim mbyte.vim test.ok X*
37 # test1 is special, it checks for features
39 :del {force} test1.failed tiny.vim small.vim mbyte.vim
40 :sys {i} $VimProg -u unix.vim -U NONE --noplugin -s dotest.in test1.in
41 @if os.system("diff test.out test1.ok") != 0:
42 :error test1 FAILED - Something basic is wrong
43 :move {force} test.out test1.out
47 :del {force} $(match).failed test.ok
48 :copy $(match).ok test.ok
49 :sys {i} $VimProg -u unix.vim -U NONE --noplugin -s dotest.in $(match).in
50 @if os.system("diff test.out " + match + ".ok") != 0:
51 :print $match FAILED >>test.log
52 :move {force} test.out $(match).failed
54 :move {force} test.out $(match).out
55 :del {r}{force} X* test.ok
58 :print Test results: >! test.log