Mercurial > vim
comparison runtime/syntax/Makefile @ 32591:92b93fe443e9 v9.0.1627
patch 9.0.1627: no generic mechanism to test syntax plugins
Commit: https://github.com/vim/vim/commit/46acad7284cba7842b5e505fa3d07e99806d246f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 11 19:04:18 2023 +0100
patch 9.0.1627: no generic mechanism to test syntax plugins
Problem: No generic mechanism to test syntax plugins.
Solution: Add a syntax plugin test mechanism, using screendumps. Add a
simple test for "c".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 11 Jun 2023 20:15:06 +0200 |
parents | |
children | 70db21e91c73 |
comparison
equal
deleted
inserted
replaced
32590:635de73eeb4c | 32591:92b93fe443e9 |
---|---|
1 # Portable Makefile for running syntax tests. | |
2 | |
3 # Override this if needed, e.g. with ../../src/vim | |
4 VIMPROG = vim | |
5 | |
6 # "runtime" relative to "runtime/syntax/testdir" | |
7 VIMRUNTIME = ../.. | |
8 | |
9 # Uncomment this line to use valgrind for memory leaks and extra warnings. | |
10 # VALGRIND = valgrind --tool=memcheck --leak-check=yes --num-callers=45 --log-file=valgrind.$* | |
11 | |
12 # ENVVARS = LC_ALL=C LANG=C LANGUAGE=C | |
13 | |
14 RUN_VIMTEST = VIMRUNTIME=$(VIMRUNTIME) $(VALGRIND) $(ENVVARS) $(VIMPROG) -f $(GUI_FLAG) | |
15 | |
16 # Run the tests that didn't run yet or failed previously. | |
17 # 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. | |
19 test: | |
20 @# the "vimcmd" file is used by the screendump utils | |
21 @echo "$(VIMPROG)" > testdir/vimcmd | |
22 @echo "$(RUN_VIMTEST)" >> testdir/vimcmd | |
23 VIMRUNTIME=$(VIMRUNTIME) $(VIMPROG) --clean --not-a-term -u testdir/runtest.vim | |
24 | |
25 | |
26 clean testclean: | |
27 rm -f testdir/failed/* testdir/done/* testdir/vimcmd |