Mercurial > vim
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 |
rev | line source |
---|---|
7 | 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 | 3 # |
4 | |
5 VimProg ?= ../vim | |
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 | 15 test48.out test49.out test74.out |
7 | 16 |
17 ScriptsGUI = test16.out | |
18 | |
19 # Build "nongui" when no target was specified. | |
20 nongui: newlog $Scripts | |
21 :print | |
22 :cat test.log | |
23 :print ALL DONE | |
24 | |
25 # Build "ngui" when specified. | |
26 gui: newlog $Scripts $ScriptsGUI | |
27 :print | |
28 :cat test.log | |
29 :print ALL DONE | |
30 | |
31 $Scripts $ScriptsGUI: $VimProg | |
32 | |
33 clean: | |
2050 | 34 :del {r}{force} *.out test.log tiny.vim small.vim mbyte.vim mzscheme.vim test.ok X* |
7 | 35 |
36 # test1 is special, it checks for features | |
37 test1.out: test1.in | |
2050 | 38 :del {force} test1.failed tiny.vim small.vim mbyte.vim mzscheme.vim |
7 | 39 :sys {i} $VimProg -u unix.vim -U NONE --noplugin -s dotest.in test1.in |
40 @if os.system("diff test.out test1.ok") != 0: | |
41 :error test1 FAILED - Something basic is wrong | |
42 :move {force} test.out test1.out | |
43 :del {r}{force} X* | |
44 | |
45 :rule %.out : %.in | |
46 :del {force} $(match).failed test.ok | |
47 :copy $(match).ok test.ok | |
48 :sys {i} $VimProg -u unix.vim -U NONE --noplugin -s dotest.in $(match).in | |
49 @if os.system("diff test.out " + match + ".ok") != 0: | |
50 :print $match FAILED >>test.log | |
51 :move {force} test.out $(match).failed | |
52 @else: | |
53 :move {force} test.out $(match).out | |
54 :del {r}{force} X* test.ok | |
55 | |
56 newlog: | |
57 :print Test results: >! test.log |