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".
This commit is contained in:
Bram Moolenaar
2023-06-11 19:04:18 +01:00
parent 10e8ff9b26
commit 46acad7284
15 changed files with 542 additions and 2 deletions

View File

@ -39,14 +39,17 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
@echo "Starting make in the src directory."
@echo "If there are problems, cd to the src directory and run make there"
cd src && $(MAKE) $@
@# When the target is "test" also run the indent tests.
@# When the target is "test" also run the indent and syntax tests.
@if test "$@" = "test"; then \
$(MAKE) indenttest; \
$(MAKE) syntaxtest; \
fi
@# When the target is "clean" also clean for the indent tests.
@# When the target is "clean" also clean for the indent and syntax tests.
@if test "$@" = "clean" -o "$@" = "distclean" -o "$@" = "testclean"; then \
cd runtime/indent && \
$(MAKE) clean; \
cd runtime/syntax && \
$(MAKE) clean; \
fi
# Executable used for running the indent tests.
@ -57,6 +60,14 @@ indenttest:
$(MAKE) clean && \
$(MAKE) test VIM="$(VIM_FOR_INDENTTEST)"
# Executable used for running the syntax tests.
VIM_FOR_SYNTAXTEST = ../../src/vim
syntaxtest:
cd runtime/syntax && \
$(MAKE) clean && \
$(MAKE) test VIM="$(VIM_FOR_SYNTAXTEST)"
#########################################################################
# 2. Creating the various distribution files.