Mercurial > vim
annotate src/testdir/Make_ming.mak @ 26510:3772e454a7fb v8.2.3785
patch 8.2.3785: running CI on MacOS with gcc is not useful
Commit: https://github.com/vim/vim/commit/48c0196378a1fa408ebae4f578a62095d8a80c6f
Author: ichizok <gclient.gaap@gmail.com>
Date: Sat Dec 11 17:34:19 2021 +0000
patch 8.2.3785: running CI on MacOS with gcc is not useful
Problem: Running CI on MacOS with gcc is not useful.
Solution: Only use clang. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/9326) Also build with
normal features.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 11 Dec 2021 18:45:03 +0100 |
parents | 52f8d1248dd9 |
children | d8a962d7b008 |
rev | line source |
---|---|
2440
fc695854c33a
Correct comments in testdir makefiles. (John Beckett)
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
1 # |
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 |
1724 | 3 # with sh.exe or zsh.exe in the path or not. |
4 # | |
5 # Author: Bill McCarthy | |
6 # | |
7 # Requires a set of Unix tools: echo, diff, etc. | |
8 | |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
9 # Don't use unix-like shell. |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
10 SHELL = cmd.exe |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
11 |
1724 | 12 DEL = del |
7445
e81526d6709f
commit https://github.com/vim/vim/commit/acf92d27c94811e3bd6b84cfd54246e91d44c355
Christian Brabandt <cb@256bit.org>
parents:
7366
diff
changeset
|
13 DELDIR = rd /s /q |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
14 MV = move /y |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
15 CP = copy /y |
6328 | 16 CAT = type |
1724 | 17 |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
18 VIMPROG = ..\\vim |
1724 | 19 |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
20 default: nongui |
7366
eec1dc8ca160
commit https://github.com/vim/vim/commit/40bbceee2213a6fa8fdc1d3f3920d61fb5370803
Christian Brabandt <cb@256bit.org>
parents:
7356
diff
changeset
|
21 |
7354
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
22 include Make_all.mak |
81dc9e30aad6
commit https://github.com/vim/vim/commit/7b6156f4cd4027b664a916ba546e9b05d4c49e11
Christian Brabandt <cb@256bit.org>
parents:
7350
diff
changeset
|
23 |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
24 # Explicit dependencies. |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
25 test_options.res test_alot.res: opt_test.vim |
6328 | 26 |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
27 TEST_OUTFILES = $(SCRIPTS_TINY_OUT) |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
28 DOSTMP = dostmp |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
29 # Keep $(DOSTMP)/*.in |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
30 .PRECIOUS: $(patsubst %.out, $(DOSTMP)/%.in, $(TEST_OUTFILES)) |
7356
f0eb9aa9eb32
commit https://github.com/vim/vim/commit/a60824308cd9bc192c5d38fc16cccfcf652b40f6
Christian Brabandt <cb@256bit.org>
parents:
7354
diff
changeset
|
31 |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
32 .SUFFIXES: .in .out .res .vim |
1724 | 33 |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
34 nongui: nolog tinytests newtests report |
1724 | 35 |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
36 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
|
37 |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
38 tiny: nolog tinytests report |
1724 | 39 |
6328 | 40 benchmark: $(SCRIPTS_BENCH) |
41 | |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
42 report: |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
43 @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
|
44 @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
|
45 else ( echo No failures reported > 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
|
46 $(VIMPROG) -u NONE $(NO_INITS) -S summarize.vim messages |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
47 @echo. |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
48 @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
|
49 @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
|
50 @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
|
51 else ( echo ALL DONE ) |
1724 | 52 |
53 | |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
54 # 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
|
55 # mingw32-make -f Make_ming.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
|
56 $(NEW_TESTS): |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
57 -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
|
58 -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
|
59 -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
|
60 @$(MAKE) -f Make_ming.mak $@.res VIMPROG=$(VIMPROG) --no-print-directory |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
61 @type messages |
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 test.log exit 1 |
1724 | 63 |
64 | |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
65 # 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
|
66 # that may result from working on the tests, not only from running them. |
1724 | 67 clean: |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
68 -@if exist *.out $(DEL) *.out |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
69 -@if exist *.failed $(DEL) *.failed |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
70 -@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
|
71 -@if exist $(DOSTMP) rd /s /q $(DOSTMP) |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
72 -@if exist test.in $(DEL) test.in |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
73 -@if exist test.ok $(DEL) test.ok |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
74 -@if exist Xdir1 $(DELDIR) Xdir1 |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
75 -@if exist Xfind $(DELDIR) Xfind |
11858
042e634bb8d9
patch 8.0.0809: MS-Windows: tests hang
Christian Brabandt <cb@256bit.org>
parents:
11651
diff
changeset
|
76 -@if exist XfakeHOME $(DELDIR) XfakeHOME |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
77 -@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
|
78 -@for /d %%i in (X*) do @rd /s/q %%i |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
79 -@if exist viminfo $(DEL) viminfo |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
80 -@if exist test.log $(DEL) test.log |
21779
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 |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
82 -@if exist messages $(DEL) messages |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
83 -@if exist benchmark.out del benchmark.out |
11079
50459aeb4773
patch 8.0.0428: git and hg see new files after running tests
Christian Brabandt <cb@256bit.org>
parents:
10944
diff
changeset
|
84 -@if exist opt_test.vim $(DEL) opt_test.vim |
1724 | 85 |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
86 nolog: |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
87 -@if exist test.log $(DEL) test.log |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
88 -@if exist test_result.log del test_result.log |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
89 -@if exist messages $(DEL) messages |
6328 | 90 |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
91 |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
92 # 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
|
93 tinytests: $(SCRIPTS_TINY_OUT) |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
94 |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
95 # Copy the input files to dostmp, changing the fileformat to dos. |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
96 $(DOSTMP)/%.in : %.in |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
97 if not exist $(DOSTMP)\nul mkdir $(DOSTMP) |
22252
52f8d1248dd9
patch 8.2.1675: MinGW: testdir makefile deletes non-existing file
Bram Moolenaar <Bram@vim.org>
parents:
21951
diff
changeset
|
98 if exist $(DOSTMP)\$< $(DEL) $(DOSTMP)\$< |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
99 $(VIMPROG) -u dos.vim $(NO_INITS) "+set ff=dos|f $@|wq" $< |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
100 |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
101 # For each input file dostmp/test99.in run the tests. |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
102 # This moves test99.in to test99.in.bak temporarily. |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
103 %.out : $(DOSTMP)/%.in |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
104 -@if exist test.out $(DEL) test.out |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
105 -@if exist $(DOSTMP)\$@ $(DEL) $(DOSTMP)\$@ |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
106 $(MV) $(notdir $<) $(notdir $<).bak > NUL |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
107 $(CP) $(DOSTMP)\$(notdir $<) $(notdir $<) > NUL |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
108 $(CP) $(basename $@).ok test.ok > NUL |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
109 $(VIMPROG) -u dos.vim $(NO_INITS) -s dotest.in $(notdir $<) |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
110 -@if exist test.out $(MV) test.out $(DOSTMP)\$@ > NUL |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
111 -@if exist $(notdir $<).bak $(MV) $(notdir $<).bak $(notdir $<) > NUL |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
112 -@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
|
113 -@if exist Xdir1 $(DELDIR) /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
|
114 -@if exist Xfind $(DELDIR) Xfind |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
115 -@if exist XfakeHOME $(DELDIR) XfakeHOME |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
116 -@del X* |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
117 -@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
|
118 $(VIMPROG) -u dos.vim $(NO_INITS) "+set ff=unix|f test.out|wq" \ |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
119 $(DOSTMP)\$@ |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
120 @diff test.out $(basename $@).ok & if errorlevel 1 \ |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
121 ( $(MV) test.out $(basename $@).failed > NUL \ |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
122 & del $(DOSTMP)\$@ \ |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
123 & echo $(basename $@) FAILED >> test.log ) \ |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
124 else ( $(MV) test.out $(basename $@).out > NUL ) |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
125 |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
126 |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
127 # New style of tests uses Vim script with assert calls. These are easier |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
128 # to write and a lot easier to read and debug. |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
129 # Limitation: Only works with the +eval feature. |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
130 |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
131 newtests: newtestssilent |
21951
3ece5c9fe811
patch 8.2.1525: messages from tests were not always displayed
Bram Moolenaar <Bram@vim.org>
parents:
21799
diff
changeset
|
132 @if exist messages type messages |
21779
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
133 |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
134 newtestssilent: $(NEW_TESTS_RES) |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
135 |
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
136 .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
|
137 @echo $(VIMPROG) > vimcmd |
10944
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
138 $(VIMPROG) -u NONE $(NO_INITS) -S runtest.vim $*.vim |
9786
3089f1d99b9e
commit https://github.com/vim/vim/commit/5b4a3767f6d1760ba1ce103ef3cffb696ece0244
Christian Brabandt <cb@256bit.org>
parents:
9303
diff
changeset
|
139 @$(DEL) vimcmd |
9303
1cc29584ef6d
commit https://github.com/vim/vim/commit/9bd31860521b53ad657c4d6d320d670e30a049f8
Christian Brabandt <cb@256bit.org>
parents:
8821
diff
changeset
|
140 |
10944
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
141 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
|
142 @echo $(VIMPROG) > vimcmd |
10944
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
143 $(VIMPROG) -u NONE $(NO_INITS) -S runtest.vim $< |
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
144 @$(DEL) vimcmd |
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
145 |
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
146 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
|
147 @echo $(VIMPROG) > vimcmd |
11138
003e7ade488f
patch 8.0.0456: typo in MinGW test makefile
Christian Brabandt <cb@256bit.org>
parents:
11119
diff
changeset
|
148 $(VIMPROG) -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:
10351
diff
changeset
|
149 @$(DEL) vimcmd |
4e2cdce4576c
patch 8.0.0361: GUI initialisation is not sufficiently tested
Christian Brabandt <cb@256bit.org>
parents:
10351
diff
changeset
|
150 |
18066
8e10cabcde8a
patch 8.1.2028: options test script does not work
Bram Moolenaar <Bram@vim.org>
parents:
15587
diff
changeset
|
151 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:
15587
diff
changeset
|
152 $(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
|
153 |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
154 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
|
155 -$(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
|
156 @echo $(VIMPROG) > vimcmd |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
157 $(VIMPROG) -u NONE $(NO_INITS) -S runtest.vim $*.vim |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
158 @$(DEL) vimcmd |
30bdd2e4a6f9
patch 8.2.1439: tiny and small builds have no test coverage
Bram Moolenaar <Bram@vim.org>
parents:
21741
diff
changeset
|
159 $(CAT) benchmark.out |