annotate src/testdir/main.aap @ 12750:0b6c09957b43 v8.0.1253

patch 8.0.1253: still too many old style tests commit https://github.com/vim/vim/commit/430dc5d360166ca5bb6a73f2c87ae53e09282ecb Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 2 21:04:47 2017 +0100 patch 8.0.1253: still too many old style tests Problem: Still too many old style tests. Solution: Convert a few more tests to new style. (Yegappan Lakshmanan, closes #2272)
author Christian Brabandt <cb@256bit.org>
date Thu, 02 Nov 2017 21:15:05 +0100
parents aa658b33f25a
children d9a94be389b5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 #
2440
fc695854c33a Correct comments in testdir makefiles. (John Beckett)
Bram Moolenaar <bram@vim.org>
parents: 2050
diff changeset
2 # Makefile to run all tests for Vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 VimProg ?= ../vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
12616
4767939d10cc patch 8.0.1186: still quite a few old style tests
Christian Brabandt <cb@256bit.org>
parents: 12560
diff changeset
7 Scripts = test1.out test2.out test3.out test6.out
12662
15f0f9f16cd9 patch 8.0.1209: still too many old style tests
Christian Brabandt <cb@256bit.org>
parents: 12616
diff changeset
8 test11.out
12750
0b6c09957b43 patch 8.0.1253: still too many old style tests
Christian Brabandt <cb@256bit.org>
parents: 12686
diff changeset
9 test13.out test14.out test15.out test17.out
12686
aa658b33f25a patch 8.0.1221: still too many old style tests
Christian Brabandt <cb@256bit.org>
parents: 12662
diff changeset
10 test18.out test21.out
aa658b33f25a patch 8.0.1221: still too many old style tests
Christian Brabandt <cb@256bit.org>
parents: 12662
diff changeset
11 test27.out test29.out test30.out
12662
15f0f9f16cd9 patch 8.0.1209: still too many old style tests
Christian Brabandt <cb@256bit.org>
parents: 12616
diff changeset
12 test36.out test37.out
12750
0b6c09957b43 patch 8.0.1253: still too many old style tests
Christian Brabandt <cb@256bit.org>
parents: 12686
diff changeset
13 test39.out test42.out
0b6c09957b43 patch 8.0.1253: still too many old style tests
Christian Brabandt <cb@256bit.org>
parents: 12686
diff changeset
14 test44.out test46.out test47.out
2607
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents: 2440
diff changeset
15 test48.out test49.out test74.out
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 ScriptsGUI = test16.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 # Build "nongui" when no target was specified.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 nongui: newlog $Scripts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 :print
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 :cat test.log
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 :print ALL DONE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 # Build "ngui" when specified.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 gui: newlog $Scripts $ScriptsGUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 :print
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 :cat test.log
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 :print ALL DONE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 $Scripts $ScriptsGUI: $VimProg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 clean:
2050
afcf9db31561 updated for version 7.2.336
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
34 :del {r}{force} *.out test.log tiny.vim small.vim mbyte.vim mzscheme.vim test.ok X*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 # test1 is special, it checks for features
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 test1.out: test1.in
2050
afcf9db31561 updated for version 7.2.336
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
38 :del {force} test1.failed tiny.vim small.vim mbyte.vim mzscheme.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 :sys {i} $VimProg -u unix.vim -U NONE --noplugin -s dotest.in test1.in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 @if os.system("diff test.out test1.ok") != 0:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 :error test1 FAILED - Something basic is wrong
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 :move {force} test.out test1.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 :del {r}{force} X*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 :rule %.out : %.in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 :del {force} $(match).failed test.ok
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 :copy $(match).ok test.ok
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 :sys {i} $VimProg -u unix.vim -U NONE --noplugin -s dotest.in $(match).in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 @if os.system("diff test.out " + match + ".ok") != 0:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 :print $match FAILED >>test.log
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 :move {force} test.out $(match).failed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 @else:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 :move {force} test.out $(match).out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 :del {r}{force} X* test.ok
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 newlog:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 :print Test results: >! test.log