annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32591
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 # Portable Makefile for running syntax tests.
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2
32631
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents: 32593
diff changeset
3 # Override this if needed, the default assumes Vim was build in the src dir.
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents: 32593
diff changeset
4 #VIMPROG = vim
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents: 32593
diff changeset
5 VIMPROG = ../../src/vim
32591
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 # "runtime" relative to "runtime/syntax/testdir"
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 VIMRUNTIME = ../..
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 # Uncomment this line to use valgrind for memory leaks and extra warnings.
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 # VALGRIND = valgrind --tool=memcheck --leak-check=yes --num-callers=45 --log-file=valgrind.$*
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 # ENVVARS = LC_ALL=C LANG=C LANGUAGE=C
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14
32593
70db21e91c73 patch 9.0.1628: syntax tests fail on FreeBSD
Bram Moolenaar <Bram@vim.org>
parents: 32591
diff changeset
15 RUN_VIMTEST = VIMRUNTIME=$(VIMRUNTIME) $(VALGRIND) $(ENVVARS) ../$(VIMPROG) -f $(GUI_FLAG)
32591
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16
32631
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents: 32593
diff changeset
17 # Uncomment this line for debugging
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents: 32593
diff changeset
18 # DEBUGLOG = --log testlog
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents: 32593
diff changeset
19
32591
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 # Run the tests that didn't run yet or failed previously.
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 # If a test succeeds a testdir/done/{name} file will be written.
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 # If a test fails a testdir/failed/{name}.dump file will be written.
32631
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents: 32593
diff changeset
23 # Progress and error messages can be found in "testdir/messages".
32591
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 test:
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 @# the "vimcmd" file is used by the screendump utils
32593
70db21e91c73 patch 9.0.1628: syntax tests fail on FreeBSD
Bram Moolenaar <Bram@vim.org>
parents: 32591
diff changeset
26 @echo "../$(VIMPROG)" > testdir/vimcmd
32591
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27 @echo "$(RUN_VIMTEST)" >> testdir/vimcmd
32631
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents: 32593
diff changeset
28 VIMRUNTIME=$(VIMRUNTIME) $(VIMPROG) --clean --not-a-term $(DEBUGLOG) -u testdir/runtest.vim
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents: 32593
diff changeset
29 @tail -n 5 testdir/messages
32591
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31
92b93fe443e9 patch 9.0.1627: no generic mechanism to test syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32 clean testclean:
32631
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents: 32593
diff changeset
33 rm -f testdir/failed/* testdir/done/* testdir/vimcmd testdir/messages