Mercurial > vim
annotate src/testdir/Makefile @ 21085:bc81b275d4d6 v8.2.1094
patch 8.2.1094: dead code in libvterm
Commit: https://github.com/vim/vim/commit/a53618dd1dd91c7bb67b5dfc83dc29371b47f55b
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 29 23:14:02 2020 +0200
patch 8.2.1094: dead code in libvterm
Problem: Dead code in libvterm.
Solution: Remove condition that is always true.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Jun 2020 23:15:05 +0200 |
parents | 3e606a19fa13 |
children | a35036006352 |
rev | line source |
---|---|
7 | 1 # |
1326 | 2 # Makefile to run all tests for Vim |
7 | 3 # |
4 | |
7313
2062247be2d0
commit https://github.com/vim/vim/commit/3f12a2421bda43a4e48c822541b75f72ee11125a
Christian Brabandt <cb@256bit.org>
parents:
7293
diff
changeset
|
5 # Use console or GUI. |
7 | 6 VIMPROG = ../vim |
13634
2678e38e1de6
patch 8.0.1689: no tests for xxd
Christian Brabandt <cb@256bit.org>
parents:
12662
diff
changeset
|
7 XXDPROG = ../xxd/xxd |
7313
2062247be2d0
commit https://github.com/vim/vim/commit/3f12a2421bda43a4e48c822541b75f72ee11125a
Christian Brabandt <cb@256bit.org>
parents:
7293
diff
changeset
|
8 # VIMPROG = ../gvim |
2062247be2d0
commit https://github.com/vim/vim/commit/3f12a2421bda43a4e48c822541b75f72ee11125a
Christian Brabandt <cb@256bit.org>
parents:
7293
diff
changeset
|
9 |
5774 | 10 SCRIPTSOURCE = ../../runtime |
7 | 11 |
14889
ba1f0c06b4be
patch 8.1.0456: running test hangs when the input file is being edited
Bram Moolenaar <Bram@vim.org>
parents:
14824
diff
changeset
|
12 # Comment out this line to see the verbose output of tests. |
ba1f0c06b4be
patch 8.1.0456: running test hangs when the input file is being edited
Bram Moolenaar <Bram@vim.org>
parents:
14824
diff
changeset
|
13 # |
ba1f0c06b4be
patch 8.1.0456: running test hangs when the input file is being edited
Bram Moolenaar <Bram@vim.org>
parents:
14824
diff
changeset
|
14 # Catches SwapExists to avoid hanging at the ATTENTION prompt. |
16957
1266ca221df8
patch 8.1.1479: change included for debugging only
Bram Moolenaar <Bram@vim.org>
parents:
16955
diff
changeset
|
15 REDIR_TEST_TO_NULL = --cmd 'au SwapExists * let v:swapchoice = "e"' > /dev/null |
14824
845180495796
patch 8.1.0424: test output is very verbose, loading CI log is slow
Christian Brabandt <cb@256bit.org>
parents:
14802
diff
changeset
|
16 |
1920 | 17 # Uncomment this line to use valgrind for memory leaks and extra warnings. |
18 # The output goes into a file "valgrind.testN" | |
19 # Vim should be compiled with EXITFREE to avoid false warnings. | |
20 # This will make testing about 10 times as slow. | |
15881
32682f423b02
Revert change accidentally included in runtime file updates. Closes #3998.
Bram Moolenaar <Bram@vim.org>
parents:
15878
diff
changeset
|
21 # VALGRIND = valgrind --tool=memcheck --leak-check=yes --num-callers=25 --log-file=valgrind.$* |
1357 | 22 |
7366
eec1dc8ca160
commit https://github.com/vim/vim/commit/40bbceee2213a6fa8fdc1d3f3920d61fb5370803
Christian Brabandt <cb@256bit.org>
parents:
7356
diff
changeset
|
23 default: nongui |
2607 | 24 |
7354
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
25 # The list of tests is common to all systems. |
15430
d94901eeb762
patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents:
14889
diff
changeset
|
26 # This defines NEW_TESTS, NEW_TESTS_RES, SCRIPTS_ALL, SCRIPTS_MORE* and |
d94901eeb762
patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents:
14889
diff
changeset
|
27 # SCRIPTS_GUI. |
7354
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
28 include Make_all.mak |
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
29 |
7 | 30 |
7354
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
31 SCRIPTS = $(SCRIPTS_ALL) \ |
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
32 $(SCRIPTS_MORE1) \ |
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
33 $(SCRIPTS_MORE2) \ |
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
34 $(SCRIPTS_MORE4) |
7 | 35 |
15432
b10ce9e77128
patch 8.1.0724: build for MinGW fails
Bram Moolenaar <Bram@vim.org>
parents:
15430
diff
changeset
|
36 # Explicit dependencies. |
b10ce9e77128
patch 8.1.0724: build for MinGW fails
Bram Moolenaar <Bram@vim.org>
parents:
15430
diff
changeset
|
37 test49.out: test49.vim |
b10ce9e77128
patch 8.1.0724: build for MinGW fails
Bram Moolenaar <Bram@vim.org>
parents:
15430
diff
changeset
|
38 |
b10ce9e77128
patch 8.1.0724: build for MinGW fails
Bram Moolenaar <Bram@vim.org>
parents:
15430
diff
changeset
|
39 test_options.res test_alot.res: opt_test.vim |
b10ce9e77128
patch 8.1.0724: build for MinGW fails
Bram Moolenaar <Bram@vim.org>
parents:
15430
diff
changeset
|
40 |
20120
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
19942
diff
changeset
|
41 SCRIPTS_BENCH = test_bench_regexp.res |
6328 | 42 |
7277
6600871bb38c
commit https://github.com/vim/vim/commit/43345546ae63710441f066648b8485fb545b3801
Christian Brabandt <cb@256bit.org>
parents:
7275
diff
changeset
|
43 .SUFFIXES: .in .out .res .vim |
7 | 44 |
7356
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
45 nongui: nolog $(SCRIPTS_FIRST) $(SCRIPTS) newtests report |
1717 | 46 |
7356
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
47 gui: nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) newtests report |
7 | 48 |
6328 | 49 benchmark: $(SCRIPTS_BENCH) |
50 | |
1717 | 51 report: |
16955
54c2fe0eff03
patch 8.1.1478: still an error when running tests with the tiny version
Bram Moolenaar <Bram@vim.org>
parents:
16951
diff
changeset
|
52 # without the +eval feature test_result.log is a copy of test.log |
54c2fe0eff03
patch 8.1.1478: still an error when running tests with the tiny version
Bram Moolenaar <Bram@vim.org>
parents:
16951
diff
changeset
|
53 @/bin/sh -c "if test -f test.log; \ |
54c2fe0eff03
patch 8.1.1478: still an error when running tests with the tiny version
Bram Moolenaar <Bram@vim.org>
parents:
16951
diff
changeset
|
54 then cp test.log test_result.log; \ |
54c2fe0eff03
patch 8.1.1478: still an error when running tests with the tiny version
Bram Moolenaar <Bram@vim.org>
parents:
16951
diff
changeset
|
55 else echo No failures reported > test_result.log; \ |
54c2fe0eff03
patch 8.1.1478: still an error when running tests with the tiny version
Bram Moolenaar <Bram@vim.org>
parents:
16951
diff
changeset
|
56 fi" |
18530
41b2506c7662
patch 8.1.2259: running tests may leave XfakeHOME behind
Bram Moolenaar <Bram@vim.org>
parents:
18378
diff
changeset
|
57 $(VIMPROG) -u NONE $(NO_INITS) -S summarize.vim messages $(REDIR_TEST_TO_NULL) |
7 | 58 @echo |
1717 | 59 @echo 'Test results:' |
16951
ebdf6cd89910
patch 8.1.1476: no statistics displayed after running tests
Bram Moolenaar <Bram@vim.org>
parents:
15922
diff
changeset
|
60 @cat test_result.log |
1717 | 61 @/bin/sh -c "if test -f test.log; \ |
16951
ebdf6cd89910
patch 8.1.1476: no statistics displayed after running tests
Bram Moolenaar <Bram@vim.org>
parents:
15922
diff
changeset
|
62 then echo TEST FAILURE; exit 1; \ |
1717 | 63 else echo ALL DONE; \ |
64 fi" | |
7 | 65 |
15430
d94901eeb762
patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents:
14889
diff
changeset
|
66 $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_GUI) $(NEW_TESTS_RES): $(VIMPROG) |
7356
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
67 |
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
68 # Must run test1 first to create small.vim. |
15430
d94901eeb762
patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents:
14889
diff
changeset
|
69 $(SCRIPTS) $(SCRIPTS_GUI) $(NEW_TESTS_RES): $(SCRIPTS_FIRST) |
d94901eeb762
patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents:
14889
diff
changeset
|
70 |
d94901eeb762
patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents:
14889
diff
changeset
|
71 |
d94901eeb762
patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents:
14889
diff
changeset
|
72 # Execute an individual new style test, e.g.: |
d94901eeb762
patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents:
14889
diff
changeset
|
73 # make test_largefile |
d94901eeb762
patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents:
14889
diff
changeset
|
74 $(NEW_TESTS): |
d94901eeb762
patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents:
14889
diff
changeset
|
75 rm -f $@.res test.log messages |
19465
07627d1b4d8c
patch 8.2.0290: running individual test differs from all tests
Bram Moolenaar <Bram@vim.org>
parents:
18530
diff
changeset
|
76 @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile $@.res VIMPROG=$(VIMPROG) XXDPROG=$(XXDPROG) SCRIPTSOURCE=$(SCRIPTSOURCE) |
18378
f2dac4c32f75
patch 8.1.2183: running a test is a bit verbose
Bram Moolenaar <Bram@vim.org>
parents:
18066
diff
changeset
|
77 @cat messages |
15430
d94901eeb762
patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents:
14889
diff
changeset
|
78 @if test -f test.log; then \ |
16980
f3a6c2c31551
patch 8.1.1490: when a single test fails the exit code is not set
Bram Moolenaar <Bram@vim.org>
parents:
16957
diff
changeset
|
79 exit 1; \ |
15430
d94901eeb762
patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents:
14889
diff
changeset
|
80 fi |
7 | 81 |
19942
b471038ec3ea
patch 8.2.0527: Vim9: function types insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
19465
diff
changeset
|
82 # Run only tests specific for Vim9 script |
b471038ec3ea
patch 8.2.0527: Vim9: function types insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
19465
diff
changeset
|
83 test_vim9: |
b471038ec3ea
patch 8.2.0527: Vim9: function types insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
19465
diff
changeset
|
84 rm -f test_vim9_*.res test.log messages |
b471038ec3ea
patch 8.2.0527: Vim9: function types insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
19465
diff
changeset
|
85 @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile $(TEST_VIM9_RES) VIMPROG=$(VIMPROG) XXDPROG=$(XXDPROG) SCRIPTSOURCE=$(SCRIPTSOURCE) |
b471038ec3ea
patch 8.2.0527: Vim9: function types insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
19465
diff
changeset
|
86 @cat messages |
b471038ec3ea
patch 8.2.0527: Vim9: function types insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
19465
diff
changeset
|
87 @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile report VIMPROG=$(VIMPROG) XXDPROG=$(XXDPROG) SCRIPTSOURCE=$(SCRIPTSOURCE) |
b471038ec3ea
patch 8.2.0527: Vim9: function types insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
19465
diff
changeset
|
88 @if test -f test.log; then \ |
b471038ec3ea
patch 8.2.0527: Vim9: function types insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
19465
diff
changeset
|
89 exit 1; \ |
b471038ec3ea
patch 8.2.0527: Vim9: function types insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
19465
diff
changeset
|
90 fi |
b471038ec3ea
patch 8.2.0527: Vim9: function types insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
19465
diff
changeset
|
91 |
3992 | 92 RM_ON_RUN = test.out X* viminfo |
14339
43b8795f1ddf
patch 8.1.0185: running tests writes lua.vim even though it is not used
Christian Brabandt <cb@256bit.org>
parents:
13634
diff
changeset
|
93 RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim test.ok benchmark.out |
17391
8a43873df941
patch 8.1.1694: the RUN_VIM variable is longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
17276
diff
changeset
|
94 RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE) $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim $(NO_INITS) -s dotest.in |
3992 | 95 |
18066
8e10cabcde8a
patch 8.1.2028: options test script does not work
Bram Moolenaar <Bram@vim.org>
parents:
17391
diff
changeset
|
96 # Delete files that may interfere with running tests. This includes some files |
8e10cabcde8a
patch 8.1.2028: options test script does not work
Bram Moolenaar <Bram@vim.org>
parents:
17391
diff
changeset
|
97 # that may result from working on the tests, not only from running them. |
7 | 98 clean: |
17276
9140a11d111a
patch 8.1.1637: after running tests and clean the XfakeHOME directory remains
Bram Moolenaar <Bram@vim.org>
parents:
17010
diff
changeset
|
99 -rm -rf *.out *.failed *.res *.rej *.orig XfakeHOME Xdir1 Xfind |
17010
9d9b637b35a9
patch 8.1.1505: running "make clean" twice gives errors
Bram Moolenaar <Bram@vim.org>
parents:
16980
diff
changeset
|
100 -rm -f opt_test.vim test.log test_result.log messages |
9d9b637b35a9
patch 8.1.1505: running "make clean" twice gives errors
Bram Moolenaar <Bram@vim.org>
parents:
16980
diff
changeset
|
101 -rm -f $(RM_ON_RUN) $(RM_ON_START) |
9d9b637b35a9
patch 8.1.1505: running "make clean" twice gives errors
Bram Moolenaar <Bram@vim.org>
parents:
16980
diff
changeset
|
102 -rm -f valgrind.* |
20132
cb0990a07084
patch 8.2.0621: after running tests asan files may remain
Bram Moolenaar <Bram@vim.org>
parents:
20120
diff
changeset
|
103 -rm -f asan.* |
7 | 104 |
105 test1.out: test1.in | |
5363 | 106 -rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START) wrongtermsize |
14824
845180495796
patch 8.1.0424: test output is very verbose, loading CI log is slow
Christian Brabandt <cb@256bit.org>
parents:
14802
diff
changeset
|
107 $(RUN_VIM) $*.in $(REDIR_TEST_TO_NULL) |
5702 | 108 @/bin/sh -c "if test -f wrongtermsize; \ |
5363 | 109 then echo; \ |
110 echo test1 FAILED - terminal size must be 80x24 or larger; \ | |
111 echo; exit 1; \ | |
112 elif diff test.out $*.ok; \ | |
7 | 113 then mv -f test.out $*.out; \ |
114 else echo; \ | |
115 echo test1 FAILED - Something basic is wrong; \ | |
116 echo; exit 1; fi" | |
117 -rm -rf X* viminfo | |
118 | |
119 .in.out: | |
3992 | 120 -rm -rf $*.failed test.ok $(RM_ON_RUN) |
7 | 121 cp $*.ok test.ok |
4313 | 122 # Sleep a moment to avoid that the xterm title is messed up. |
123 # 200 msec is sufficient, but only modern sleep supports a fraction of | |
124 # a second, fall back to a second if it fails. | |
125 @-/bin/sh -c "sleep .2 > /dev/null 2>&1 || sleep 1" | |
14824
845180495796
patch 8.1.0424: test output is very verbose, loading CI log is slow
Christian Brabandt <cb@256bit.org>
parents:
14802
diff
changeset
|
126 $(RUN_VIM) $*.in $(REDIR_TEST_TO_NULL) |
3992 | 127 |
9719
219dbe63ad2a
commit https://github.com/vim/vim/commit/89eaa4185efacab253b23a182c1c8a7bbf1096c9
Christian Brabandt <cb@256bit.org>
parents:
9137
diff
changeset
|
128 # For flaky tests retry one time. No tests at the moment. |
219dbe63ad2a
commit https://github.com/vim/vim/commit/89eaa4185efacab253b23a182c1c8a7bbf1096c9
Christian Brabandt <cb@256bit.org>
parents:
9137
diff
changeset
|
129 #@/bin/sh -c "if test -f test.out -a $* = test61; then \ |
219dbe63ad2a
commit https://github.com/vim/vim/commit/89eaa4185efacab253b23a182c1c8a7bbf1096c9
Christian Brabandt <cb@256bit.org>
parents:
9137
diff
changeset
|
130 # if diff test.out $*.ok; \ |
219dbe63ad2a
commit https://github.com/vim/vim/commit/89eaa4185efacab253b23a182c1c8a7bbf1096c9
Christian Brabandt <cb@256bit.org>
parents:
9137
diff
changeset
|
131 # then echo flaky test ok first time; \ |
219dbe63ad2a
commit https://github.com/vim/vim/commit/89eaa4185efacab253b23a182c1c8a7bbf1096c9
Christian Brabandt <cb@256bit.org>
parents:
9137
diff
changeset
|
132 # else rm -rf $*.failed $(RM_ON_RUN); \ |
219dbe63ad2a
commit https://github.com/vim/vim/commit/89eaa4185efacab253b23a182c1c8a7bbf1096c9
Christian Brabandt <cb@256bit.org>
parents:
9137
diff
changeset
|
133 # $(RUN_VIM) $*.in; \ |
219dbe63ad2a
commit https://github.com/vim/vim/commit/89eaa4185efacab253b23a182c1c8a7bbf1096c9
Christian Brabandt <cb@256bit.org>
parents:
9137
diff
changeset
|
134 # fi \ |
219dbe63ad2a
commit https://github.com/vim/vim/commit/89eaa4185efacab253b23a182c1c8a7bbf1096c9
Christian Brabandt <cb@256bit.org>
parents:
9137
diff
changeset
|
135 # fi" |
3992 | 136 |
137 # Check if the test.out file matches test.ok. | |
4444 | 138 @/bin/sh -c "if test -f test.out; then \ |
169 | 139 if diff test.out $*.ok; \ |
140 then mv -f test.out $*.out; \ | |
141 else echo $* FAILED >>test.log; mv -f test.out $*.failed; \ | |
142 fi \ | |
143 else echo $* NO OUTPUT >>test.log; \ | |
7 | 144 fi" |
4444 | 145 @/bin/sh -c "if test -f valgrind; then\ |
146 mv -f valgrind valgrind.$*; \ | |
147 fi" | |
3855 | 148 -rm -rf X* test.ok viminfo |
7 | 149 |
150 nolog: | |
7372
6b057079a836
commit https://github.com/vim/vim/commit/096c8bb40d51b22a4b1d761baf7bb79fb9e55a28
Christian Brabandt <cb@256bit.org>
parents:
7366
diff
changeset
|
151 -rm -f test.log messages |
7277
6600871bb38c
commit https://github.com/vim/vim/commit/43345546ae63710441f066648b8485fb545b3801
Christian Brabandt <cb@256bit.org>
parents:
7275
diff
changeset
|
152 |
6600871bb38c
commit https://github.com/vim/vim/commit/43345546ae63710441f066648b8485fb545b3801
Christian Brabandt <cb@256bit.org>
parents:
7275
diff
changeset
|
153 |
6600871bb38c
commit https://github.com/vim/vim/commit/43345546ae63710441f066648b8485fb545b3801
Christian Brabandt <cb@256bit.org>
parents:
7275
diff
changeset
|
154 # New style of tests uses Vim script with assert calls. These are easier |
6600871bb38c
commit https://github.com/vim/vim/commit/43345546ae63710441f066648b8485fb545b3801
Christian Brabandt <cb@256bit.org>
parents:
7275
diff
changeset
|
155 # to write and a lot easier to read and debug. |
6600871bb38c
commit https://github.com/vim/vim/commit/43345546ae63710441f066648b8485fb545b3801
Christian Brabandt <cb@256bit.org>
parents:
7275
diff
changeset
|
156 # Limitation: Only works with the +eval feature. |
17391
8a43873df941
patch 8.1.1694: the RUN_VIM variable is longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
17276
diff
changeset
|
157 RUN_VIMTEST = VIMRUNTIME=$(SCRIPTSOURCE) $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim |
7277
6600871bb38c
commit https://github.com/vim/vim/commit/43345546ae63710441f066648b8485fb545b3801
Christian Brabandt <cb@256bit.org>
parents:
7275
diff
changeset
|
158 |
7506
cfc0d60f6233
commit https://github.com/vim/vim/commit/e7893a4088d6ea796bcab6195d232cb26c12c317
Christian Brabandt <cb@256bit.org>
parents:
7372
diff
changeset
|
159 newtests: newtestssilent |
14802
9b04068f7265
patch 8.1.0413: test output is duplicated or missing
Christian Brabandt <cb@256bit.org>
parents:
14339
diff
changeset
|
160 @/bin/sh -c "if test -f messages && grep -q 'SKIPPED\|FAILED' messages; then cat messages; fi" |
7506
cfc0d60f6233
commit https://github.com/vim/vim/commit/e7893a4088d6ea796bcab6195d232cb26c12c317
Christian Brabandt <cb@256bit.org>
parents:
7372
diff
changeset
|
161 |
15430
d94901eeb762
patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents:
14889
diff
changeset
|
162 newtestssilent: $(NEW_TESTS_RES) |
7506
cfc0d60f6233
commit https://github.com/vim/vim/commit/e7893a4088d6ea796bcab6195d232cb26c12c317
Christian Brabandt <cb@256bit.org>
parents:
7372
diff
changeset
|
163 |
7277
6600871bb38c
commit https://github.com/vim/vim/commit/43345546ae63710441f066648b8485fb545b3801
Christian Brabandt <cb@256bit.org>
parents:
7275
diff
changeset
|
164 |
15922
0d6331501d19
patch 8.1.0967: stray dependency in test Makefile
Bram Moolenaar <Bram@vim.org>
parents:
15881
diff
changeset
|
165 .vim.res: |
12602
9359ed49d375
patch 8.0.1179: Test_popup_and_window_resize() does not always pass
Christian Brabandt <cb@256bit.org>
parents:
11119
diff
changeset
|
166 @echo "$(VIMPROG)" > vimcmd |
9359ed49d375
patch 8.0.1179: Test_popup_and_window_resize() does not always pass
Christian Brabandt <cb@256bit.org>
parents:
11119
diff
changeset
|
167 @echo "$(RUN_VIMTEST)" >> vimcmd |
14824
845180495796
patch 8.1.0424: test output is very verbose, loading CI log is slow
Christian Brabandt <cb@256bit.org>
parents:
14802
diff
changeset
|
168 $(RUN_VIMTEST) $(NO_INITS) -S runtest.vim $*.vim $(REDIR_TEST_TO_NULL) |
9778
4360b2b46125
commit https://github.com/vim/vim/commit/66459b7c98c67f8a9d39de8f08e8e8f1fca0e359
Christian Brabandt <cb@256bit.org>
parents:
9719
diff
changeset
|
169 @rm vimcmd |
10944
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10765
diff
changeset
|
170 |
20820
3e606a19fa13
patch 8.2.0962: terminal test sometimes hangs on Travis
Bram Moolenaar <Bram@vim.org>
parents:
20132
diff
changeset
|
171 # Temporary: Do not use $REDIR_TEST_TO_NULL for test_terminal to be able to see |
3e606a19fa13
patch 8.2.0962: terminal test sometimes hangs on Travis
Bram Moolenaar <Bram@vim.org>
parents:
20132
diff
changeset
|
172 # where it sometimes hanges on CI. |
3e606a19fa13
patch 8.2.0962: terminal test sometimes hangs on Travis
Bram Moolenaar <Bram@vim.org>
parents:
20132
diff
changeset
|
173 test_terminal.res: test_terminal.vim |
3e606a19fa13
patch 8.2.0962: terminal test sometimes hangs on Travis
Bram Moolenaar <Bram@vim.org>
parents:
20132
diff
changeset
|
174 @echo "$(VIMPROG)" > vimcmd |
3e606a19fa13
patch 8.2.0962: terminal test sometimes hangs on Travis
Bram Moolenaar <Bram@vim.org>
parents:
20132
diff
changeset
|
175 @echo "$(RUN_VIMTEST)" >> vimcmd |
3e606a19fa13
patch 8.2.0962: terminal test sometimes hangs on Travis
Bram Moolenaar <Bram@vim.org>
parents:
20132
diff
changeset
|
176 $(RUN_VIMTEST) $(NO_INITS) -S runtest.vim $*.vim |
3e606a19fa13
patch 8.2.0962: terminal test sometimes hangs on Travis
Bram Moolenaar <Bram@vim.org>
parents:
20132
diff
changeset
|
177 @rm vimcmd |
3e606a19fa13
patch 8.2.0962: terminal test sometimes hangs on Travis
Bram Moolenaar <Bram@vim.org>
parents:
20132
diff
changeset
|
178 |
10944
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10765
diff
changeset
|
179 test_gui.res: test_gui.vim |
12602
9359ed49d375
patch 8.0.1179: Test_popup_and_window_resize() does not always pass
Christian Brabandt <cb@256bit.org>
parents:
11119
diff
changeset
|
180 @echo "$(VIMPROG)" > vimcmd |
9359ed49d375
patch 8.0.1179: Test_popup_and_window_resize() does not always pass
Christian Brabandt <cb@256bit.org>
parents:
11119
diff
changeset
|
181 @echo "$(RUN_GVIMTEST)" >> vimcmd |
10944
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10765
diff
changeset
|
182 $(RUN_VIMTEST) -u NONE $(NO_INITS) -S runtest.vim $< |
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10765
diff
changeset
|
183 @rm vimcmd |
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10765
diff
changeset
|
184 |
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10765
diff
changeset
|
185 test_gui_init.res: test_gui_init.vim |
12602
9359ed49d375
patch 8.0.1179: Test_popup_and_window_resize() does not always pass
Christian Brabandt <cb@256bit.org>
parents:
11119
diff
changeset
|
186 @echo "$(VIMPROG)" > vimcmd |
9359ed49d375
patch 8.0.1179: Test_popup_and_window_resize() does not always pass
Christian Brabandt <cb@256bit.org>
parents:
11119
diff
changeset
|
187 @echo "$(RUN_GVIMTEST_WITH_GVIMRC)" >> vimcmd |
11119
d8a550329a97
patch 8.0.0447: getting font name does not work on X11
Christian Brabandt <cb@256bit.org>
parents:
11083
diff
changeset
|
188 $(RUN_VIMTEST) -u gui_preinit.vim -U gui_init.vim $(NO_PLUGINS) -S runtest.vim $< |
10944
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10765
diff
changeset
|
189 @rm vimcmd |
11079
50459aeb4773
patch 8.0.0428: git and hg see new files after running tests
Christian Brabandt <cb@256bit.org>
parents:
10944
diff
changeset
|
190 |
18066
8e10cabcde8a
patch 8.1.2028: options test script does not work
Bram Moolenaar <Bram@vim.org>
parents:
17391
diff
changeset
|
191 opt_test.vim: ../optiondefs.h gen_opt_test.vim |
8e10cabcde8a
patch 8.1.2028: options test script does not work
Bram Moolenaar <Bram@vim.org>
parents:
17391
diff
changeset
|
192 $(VIMPROG) -u NONE -S gen_opt_test.vim --noplugin --not-a-term ../optiondefs.h |
13634
2678e38e1de6
patch 8.0.1689: no tests for xxd
Christian Brabandt <cb@256bit.org>
parents:
12662
diff
changeset
|
193 |
2678e38e1de6
patch 8.0.1689: no tests for xxd
Christian Brabandt <cb@256bit.org>
parents:
12662
diff
changeset
|
194 test_xxd.res: |
2678e38e1de6
patch 8.0.1689: no tests for xxd
Christian Brabandt <cb@256bit.org>
parents:
12662
diff
changeset
|
195 XXD=$(XXDPROG); export XXD; $(RUN_VIMTEST) $(NO_INITS) -S runtest.vim test_xxd.vim |
20120
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
19942
diff
changeset
|
196 |
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
19942
diff
changeset
|
197 test_bench_regexp.res: test_bench_regexp.vim |
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
19942
diff
changeset
|
198 -rm -rf benchmark.out $(RM_ON_RUN) |
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
19942
diff
changeset
|
199 # Sleep a moment to avoid that the xterm title is messed up. |
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
19942
diff
changeset
|
200 # 200 msec is sufficient, but only modern sleep supports a fraction of |
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
19942
diff
changeset
|
201 # a second, fall back to a second if it fails. |
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
19942
diff
changeset
|
202 @-/bin/sh -c "sleep .2 > /dev/null 2>&1 || sleep 1" |
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
19942
diff
changeset
|
203 $(RUN_VIMTEST) $(NO_INITS) -S runtest.vim $*.vim $(REDIR_TEST_TO_NULL) |
16460964c304
patch 8.2.0615: regexp benchmark stest is old style
Bram Moolenaar <Bram@vim.org>
parents:
19942
diff
changeset
|
204 @/bin/sh -c "if test -f benchmark.out; then cat benchmark.out; fi" |