Mercurial > vim
comparison runtime/syntax/Makefile @ 32631:f8a2fc7d823f v9.0.1647
patch 9.0.1647: insufficient testing for syntax plugins
Commit: https://github.com/vim/vim/commit/1aa5f1c21fea60fe64cdcdf6990bf43ea5cc78a0
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 22 21:57:51 2023 +0100
patch 9.0.1647: insufficient testing for syntax plugins
Problem: Insufficient testing for syntax plugins.
Solution: Add shell file examples. (Charles Campbell) Create a messages
file for easier debugging and reporting the test results.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 22 Jun 2023 23:00:05 +0200 |
parents | 70db21e91c73 |
children | a8577b9dab80 |
comparison
equal
deleted
inserted
replaced
32630:7477909c676f | 32631:f8a2fc7d823f |
---|---|
1 # Portable Makefile for running syntax tests. | 1 # Portable Makefile for running syntax tests. |
2 | 2 |
3 # Override this if needed, e.g. with ../../src/vim | 3 # Override this if needed, the default assumes Vim was build in the src dir. |
4 VIMPROG = vim | 4 #VIMPROG = vim |
5 VIMPROG = ../../src/vim | |
5 | 6 |
6 # "runtime" relative to "runtime/syntax/testdir" | 7 # "runtime" relative to "runtime/syntax/testdir" |
7 VIMRUNTIME = ../.. | 8 VIMRUNTIME = ../.. |
8 | 9 |
9 # Uncomment this line to use valgrind for memory leaks and extra warnings. | 10 # Uncomment this line to use valgrind for memory leaks and extra warnings. |
11 | 12 |
12 # ENVVARS = LC_ALL=C LANG=C LANGUAGE=C | 13 # ENVVARS = LC_ALL=C LANG=C LANGUAGE=C |
13 | 14 |
14 RUN_VIMTEST = VIMRUNTIME=$(VIMRUNTIME) $(VALGRIND) $(ENVVARS) ../$(VIMPROG) -f $(GUI_FLAG) | 15 RUN_VIMTEST = VIMRUNTIME=$(VIMRUNTIME) $(VALGRIND) $(ENVVARS) ../$(VIMPROG) -f $(GUI_FLAG) |
15 | 16 |
17 # Uncomment this line for debugging | |
18 # DEBUGLOG = --log testlog | |
19 | |
16 # Run the tests that didn't run yet or failed previously. | 20 # Run the tests that didn't run yet or failed previously. |
17 # If a test succeeds a testdir/done/{name} file will be written. | 21 # If a test succeeds a testdir/done/{name} file will be written. |
18 # If a test fails a testdir/failed/{name}.dump file will be written. | 22 # If a test fails a testdir/failed/{name}.dump file will be written. |
23 # Progress and error messages can be found in "testdir/messages". | |
19 test: | 24 test: |
20 @# the "vimcmd" file is used by the screendump utils | 25 @# the "vimcmd" file is used by the screendump utils |
21 @echo "../$(VIMPROG)" > testdir/vimcmd | 26 @echo "../$(VIMPROG)" > testdir/vimcmd |
22 @echo "$(RUN_VIMTEST)" >> testdir/vimcmd | 27 @echo "$(RUN_VIMTEST)" >> testdir/vimcmd |
23 VIMRUNTIME=$(VIMRUNTIME) $(VIMPROG) --clean --not-a-term -u testdir/runtest.vim | 28 VIMRUNTIME=$(VIMRUNTIME) $(VIMPROG) --clean --not-a-term $(DEBUGLOG) -u testdir/runtest.vim |
29 @tail -n 5 testdir/messages | |
24 | 30 |
25 | 31 |
26 clean testclean: | 32 clean testclean: |
27 rm -f testdir/failed/* testdir/done/* testdir/vimcmd | 33 rm -f testdir/failed/* testdir/done/* testdir/vimcmd testdir/messages |