annotate src/testdir/Make_dos.mak @ 29752:b01151812350 v9.0.0216

patch 9.0.0216: undo earlier test sometimes fails on MS-Windows Commit: https://github.com/vim/vim/commit/cce293f87beb57a75ff738fade7fafadbc4a78a9 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 15 17:28:27 2022 +0100 patch 9.0.0216: undo earlier test sometimes fails on MS-Windows Problem: Undo earlier test sometimes fails on MS-Windows. Solution: Use another file name.
author Bram Moolenaar <Bram@vim.org>
date Mon, 15 Aug 2022 18:30:04 +0200
parents d8a962d7b008
children ba9d53c7c509
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: 2232
diff changeset
2 # Makefile to run all tests for Vim, on Dos-like machines.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 # Requires a set of Unix tools: echo, diff, etc.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 VIMPROG = ..\\vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
7366
eec1dc8ca160 commit https://github.com/vim/vim/commit/40bbceee2213a6fa8fdc1d3f3920d61fb5370803
Christian Brabandt <cb@256bit.org>
parents: 7362
diff changeset
8 default: nongui
eec1dc8ca160 commit https://github.com/vim/vim/commit/40bbceee2213a6fa8fdc1d3f3920d61fb5370803
Christian Brabandt <cb@256bit.org>
parents: 7362
diff changeset
9
7354
81dc9e30aad6 commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents: 7350
diff changeset
10 !include Make_all.mak
81dc9e30aad6 commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents: 7350
diff changeset
11
21779
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
12 # Explicit dependencies.
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
13 test_options.res test_alot.res: opt_test.vim
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
14
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
15 TEST_OUTFILES = $(SCRIPTS_TINY_OUT)
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
16 DOSTMP = dostmp
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
17 DOSTMP_OUTFILES = $(TEST_OUTFILES:test=dostmp\test)
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
18 DOSTMP_INFILES = $(DOSTMP_OUTFILES:.out=.in)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
7378
a6c23c3c5880 commit https://github.com/vim/vim/commit/4e5a31c8b3e259605f4d8543aaae68578cf9b0d7
Christian Brabandt <cb@256bit.org>
parents: 7366
diff changeset
20 .SUFFIXES: .in .out .res .vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
29128
d8a962d7b008 patch 8.2.5084: when the GUI shows a dialog tests get stuck
Bram Moolenaar <Bram@vim.org>
parents: 21951
diff changeset
22 # Add --gui-dialog-file to avoid getting stuck in a dialog.
d8a962d7b008 patch 8.2.5084: when the GUI shows a dialog tests get stuck
Bram Moolenaar <Bram@vim.org>
parents: 21951
diff changeset
23 COMMON_ARGS = $(NO_INITS) --gui-dialog-file guidialog
d8a962d7b008 patch 8.2.5084: when the GUI shows a dialog tests get stuck
Bram Moolenaar <Bram@vim.org>
parents: 21951
diff changeset
24
21779
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
25 nongui: nolog tinytests newtests report
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
26
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
27 gui: nolog tinytests newtests report
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
28
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
29 tiny: nolog tinytests report
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
30
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
31 benchmark: $(SCRIPTS_BENCH)
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
32
21779
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
33 report:
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
34 @rem without the +eval feature test_result.log is a copy of test.log
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
35 @if exist test.log ( copy /y test.log test_result.log > nul ) \
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
36 else ( echo No failures reported > test_result.log )
29128
d8a962d7b008 patch 8.2.5084: when the GUI shows a dialog tests get stuck
Bram Moolenaar <Bram@vim.org>
parents: 21951
diff changeset
37 $(VIMPROG) -u NONE $(COMMON_ARGS) -S summarize.vim messages
21779
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
38 @echo.
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
39 @echo Test results:
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
40 @cmd /c type test_result.log
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
41 @if exist test.log ( echo TEST FAILURE & exit /b 1 ) \
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
42 else ( echo ALL DONE )
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
43
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
44
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
45 # Execute an individual new style test, e.g.:
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
46 # nmake -f Make_dos.mak test_largefile
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
47 $(NEW_TESTS):
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
48 -if exist $@.res del $@.res
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
49 -if exist test.log del test.log
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
50 -if exist messages del messages
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
51 @$(MAKE) -nologo -f Make_dos.mak $@.res VIMPROG=$(VIMPROG)
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
52 @type messages
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
53 @if exist test.log exit 1
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
54
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
55
21779
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
56 # Delete files that may interfere with running tests. This includes some files
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
57 # that may result from working on the tests, not only from running them.
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
58 clean:
21813
422387068c44 patch 8.2.1456: MS-Windows: test files are not deleted
Bram Moolenaar <Bram@vim.org>
parents: 21799
diff changeset
59 -if exist *.out del *.out
422387068c44 patch 8.2.1456: MS-Windows: test files are not deleted
Bram Moolenaar <Bram@vim.org>
parents: 21799
diff changeset
60 -if exist *.failed del *.failed
422387068c44 patch 8.2.1456: MS-Windows: test files are not deleted
Bram Moolenaar <Bram@vim.org>
parents: 21799
diff changeset
61 -if exist *.res del *.res
21779
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
62 -if exist $(DOSTMP) rd /s /q $(DOSTMP)
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
63 -if exist test.in del test.in
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
64 -if exist test.ok del test.ok
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
65 -if exist Xdir1 rd /s /q Xdir1
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
66 -if exist Xfind rd /s /q Xfind
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
67 -if exist XfakeHOME rd /s /q XfakeHOME
21813
422387068c44 patch 8.2.1456: MS-Windows: test files are not deleted
Bram Moolenaar <Bram@vim.org>
parents: 21799
diff changeset
68 -if exist X* del X*
21779
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
69 -for /d %i in (X*) do @rd /s/q %i
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
70 -if exist viminfo del viminfo
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
71 -if exist test.log del test.log
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
72 -if exist test_result.log del test_result.log
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
73 -if exist messages del messages
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
74 -if exist benchmark.out del benchmark.out
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
75 -if exist opt_test.vim del opt_test.vim
29128
d8a962d7b008 patch 8.2.5084: when the GUI shows a dialog tests get stuck
Bram Moolenaar <Bram@vim.org>
parents: 21951
diff changeset
76 -if exist guidialog del guidialog
d8a962d7b008 patch 8.2.5084: when the GUI shows a dialog tests get stuck
Bram Moolenaar <Bram@vim.org>
parents: 21951
diff changeset
77 -if exist guidialogfile del guidialogfile
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
21779
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
79 nolog:
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
80 -if exist test.log del test.log
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
81 -if exist test_result.log del test_result.log
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
82 -if exist messages del messages
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
83
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
84
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
85 # Tiny tests. Works even without the +eval feature.
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
86 tinytests: $(SCRIPTS_TINY_OUT)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
88 # Copy the input files to dostmp, changing the fileformat to dos.
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
89 $(DOSTMP_INFILES): $(*B).in
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
90 if not exist $(DOSTMP)\NUL md $(DOSTMP)
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
91 if exist $@ del $@
29128
d8a962d7b008 patch 8.2.5084: when the GUI shows a dialog tests get stuck
Bram Moolenaar <Bram@vim.org>
parents: 21951
diff changeset
92 $(VIMPROG) -u dos.vim $(COMMON_ARGS) "+set ff=dos|f $@|wq" $(*B).in
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
94 # For each input file dostmp/test99.in run the tests.
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
95 # This moves test99.in to test99.in.bak temporarily.
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
96 $(TEST_OUTFILES): $(DOSTMP)\$(*B).in
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
97 -@if exist test.out DEL test.out
11150
9f9409588102 patch 8.0.0462: failure of an MS-Windows test may go unnoticed
Christian Brabandt <cb@256bit.org>
parents: 11119
diff changeset
98 -@if exist $(DOSTMP)\$(*B).out DEL $(DOSTMP)\$(*B).out
10510
dfbe8f74806d commit https://github.com/vim/vim/commit/29891c4ed4a7d08af1ba1628933a387adf5c1555
Christian Brabandt <cb@256bit.org>
parents: 9786
diff changeset
99 move $(*B).in $(*B).in.bak > nul
dfbe8f74806d commit https://github.com/vim/vim/commit/29891c4ed4a7d08af1ba1628933a387adf5c1555
Christian Brabandt <cb@256bit.org>
parents: 9786
diff changeset
100 copy $(DOSTMP)\$(*B).in $(*B).in > nul
dfbe8f74806d commit https://github.com/vim/vim/commit/29891c4ed4a7d08af1ba1628933a387adf5c1555
Christian Brabandt <cb@256bit.org>
parents: 9786
diff changeset
101 copy $(*B).ok test.ok > nul
29128
d8a962d7b008 patch 8.2.5084: when the GUI shows a dialog tests get stuck
Bram Moolenaar <Bram@vim.org>
parents: 21951
diff changeset
102 $(VIMPROG) -u dos.vim $(COMMON_ARGS) -s dotest.in $(*B).in
10510
dfbe8f74806d commit https://github.com/vim/vim/commit/29891c4ed4a7d08af1ba1628933a387adf5c1555
Christian Brabandt <cb@256bit.org>
parents: 9786
diff changeset
103 -@if exist test.out MOVE /y test.out $(DOSTMP)\$(*B).out > nul
dfbe8f74806d commit https://github.com/vim/vim/commit/29891c4ed4a7d08af1ba1628933a387adf5c1555
Christian Brabandt <cb@256bit.org>
parents: 9786
diff changeset
104 -@if exist $(*B).in.bak move /y $(*B).in.bak $(*B).in > nul
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
105 -@if exist test.ok del test.ok
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
106 -@if exist Xdir1 rd /s /q Xdir1
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
107 -@if exist Xfind rd /s /q Xfind
11858
042e634bb8d9 patch 8.0.0809: MS-Windows: tests hang
Christian Brabandt <cb@256bit.org>
parents: 11150
diff changeset
108 -@if exist XfakeHOME rd /s /q XfakeHOME
7445
e81526d6709f commit https://github.com/vim/vim/commit/acf92d27c94811e3bd6b84cfd54246e91d44c355
Christian Brabandt <cb@256bit.org>
parents: 7395
diff changeset
109 -@del X*
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
110 -@if exist viminfo del viminfo
29128
d8a962d7b008 patch 8.2.5084: when the GUI shows a dialog tests get stuck
Bram Moolenaar <Bram@vim.org>
parents: 21951
diff changeset
111 $(VIMPROG) -u dos.vim $(COMMON_ARGS) "+set ff=unix|f test.out|wq" \
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
112 $(DOSTMP)\$(*B).out
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
113 @diff test.out $*.ok & if errorlevel 1 \
10510
dfbe8f74806d commit https://github.com/vim/vim/commit/29891c4ed4a7d08af1ba1628933a387adf5c1555
Christian Brabandt <cb@256bit.org>
parents: 9786
diff changeset
114 ( move /y test.out $*.failed > nul \
6643
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
115 & del $(DOSTMP)\$(*B).out \
4f9c3e62d4d4 updated for version 7.4.647
Bram Moolenaar <bram@vim.org>
parents: 6616
diff changeset
116 & echo $* FAILED >> test.log ) \
10510
dfbe8f74806d commit https://github.com/vim/vim/commit/29891c4ed4a7d08af1ba1628933a387adf5c1555
Christian Brabandt <cb@256bit.org>
parents: 9786
diff changeset
117 else ( move /y test.out $*.out > nul )
49
10286edc333c updated for version 7.0028
vimboss
parents: 40
diff changeset
118
7378
a6c23c3c5880 commit https://github.com/vim/vim/commit/4e5a31c8b3e259605f4d8543aaae68578cf9b0d7
Christian Brabandt <cb@256bit.org>
parents: 7366
diff changeset
119
a6c23c3c5880 commit https://github.com/vim/vim/commit/4e5a31c8b3e259605f4d8543aaae68578cf9b0d7
Christian Brabandt <cb@256bit.org>
parents: 7366
diff changeset
120 # New style of tests uses Vim script with assert calls. These are easier
a6c23c3c5880 commit https://github.com/vim/vim/commit/4e5a31c8b3e259605f4d8543aaae68578cf9b0d7
Christian Brabandt <cb@256bit.org>
parents: 7366
diff changeset
121 # to write and a lot easier to read and debug.
a6c23c3c5880 commit https://github.com/vim/vim/commit/4e5a31c8b3e259605f4d8543aaae68578cf9b0d7
Christian Brabandt <cb@256bit.org>
parents: 7366
diff changeset
122 # Limitation: Only works with the +eval feature.
a6c23c3c5880 commit https://github.com/vim/vim/commit/4e5a31c8b3e259605f4d8543aaae68578cf9b0d7
Christian Brabandt <cb@256bit.org>
parents: 7366
diff changeset
123
14802
9b04068f7265 patch 8.1.0413: test output is duplicated or missing
Christian Brabandt <cb@256bit.org>
parents: 14339
diff changeset
124 newtests: newtestssilent
21951
3ece5c9fe811 patch 8.2.1525: messages from tests were not always displayed
Bram Moolenaar <Bram@vim.org>
parents: 21813
diff changeset
125 @if exist messages type messages
14802
9b04068f7265 patch 8.1.0413: test output is duplicated or missing
Christian Brabandt <cb@256bit.org>
parents: 14339
diff changeset
126
15430
d94901eeb762 patch 8.1.0723: cannot easily run specific test when in src/testdir
Bram Moolenaar <Bram@vim.org>
parents: 14802
diff changeset
127 newtestssilent: $(NEW_TESTS_RES)
7378
a6c23c3c5880 commit https://github.com/vim/vim/commit/4e5a31c8b3e259605f4d8543aaae68578cf9b0d7
Christian Brabandt <cb@256bit.org>
parents: 7366
diff changeset
128
a6c23c3c5880 commit https://github.com/vim/vim/commit/4e5a31c8b3e259605f4d8543aaae68578cf9b0d7
Christian Brabandt <cb@256bit.org>
parents: 7366
diff changeset
129 .vim.res:
12606
4ecdfa7b4e62 patch 8.0.1181: tests using Vim command fail on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 11858
diff changeset
130 @echo $(VIMPROG) > vimcmd
29128
d8a962d7b008 patch 8.2.5084: when the GUI shows a dialog tests get stuck
Bram Moolenaar <Bram@vim.org>
parents: 21951
diff changeset
131 $(VIMPROG) -u NONE $(COMMON_ARGS) -S runtest.vim $*.vim
9786
3089f1d99b9e commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents: 8263
diff changeset
132 @del vimcmd
10944
4e2cdce4576c patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents: 10510
diff changeset
133
4e2cdce4576c patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents: 10510
diff changeset
134 test_gui.res: test_gui.vim
12606
4ecdfa7b4e62 patch 8.0.1181: tests using Vim command fail on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 11858
diff changeset
135 @echo $(VIMPROG) > vimcmd
29128
d8a962d7b008 patch 8.2.5084: when the GUI shows a dialog tests get stuck
Bram Moolenaar <Bram@vim.org>
parents: 21951
diff changeset
136 $(VIMPROG) -u NONE $(COMMON_ARGS) -S runtest.vim $*.vim
10944
4e2cdce4576c patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents: 10510
diff changeset
137 @del vimcmd
4e2cdce4576c patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents: 10510
diff changeset
138
4e2cdce4576c patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents: 10510
diff changeset
139 test_gui_init.res: test_gui_init.vim
12606
4ecdfa7b4e62 patch 8.0.1181: tests using Vim command fail on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 11858
diff changeset
140 @echo $(VIMPROG) > vimcmd
11119
d8a550329a97 patch 8.0.0447: getting font name does not work on X11
Christian Brabandt <cb@256bit.org>
parents: 11083
diff changeset
141 $(VIMPROG) -u gui_preinit.vim -U gui_init.vim $(NO_PLUGINS) -S runtest.vim $*.vim
10944
4e2cdce4576c patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents: 10510
diff changeset
142 @del vimcmd
11079
50459aeb4773 patch 8.0.0428: git and hg see new files after running tests
Christian Brabandt <cb@256bit.org>
parents: 10946
diff changeset
143
18066
8e10cabcde8a patch 8.1.2028: options test script does not work
Bram Moolenaar <Bram@vim.org>
parents: 15432
diff changeset
144 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: 15432
diff changeset
145 $(VIMPROG) -u NONE -S gen_opt_test.vim --noplugin --not-a-term ../optiondefs.h
21779
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
146
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
147 test_bench_regexp.res: test_bench_regexp.vim
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
148 -if exist benchmark.out del benchmark.out
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
149 @echo $(VIMPROG) > vimcmd
29128
d8a962d7b008 patch 8.2.5084: when the GUI shows a dialog tests get stuck
Bram Moolenaar <Bram@vim.org>
parents: 21951
diff changeset
150 $(VIMPROG) -u NONE $(COMMON_ARGS) -S runtest.vim $*.vim
21779
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
151 @del vimcmd
30bdd2e4a6f9 patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents: 21741
diff changeset
152 @IF EXIST benchmark.out ( type benchmark.out )