summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-06-11 19:04:18 +0100
committerBram Moolenaar <Bram@vim.org>2023-06-11 19:04:18 +0100
commit46acad7284cba7842b5e505fa3d07e99806d246f (patch)
tree7ae53661500fb477e8b605c71129273551089441 /Makefile
parent10e8ff9b26078994cae57c2422b145d37aaf714e (diff)
patch 9.0.1627: no generic mechanism to test syntax pluginsv9.0.1627
Problem: No generic mechanism to test syntax plugins. Solution: Add a syntax plugin test mechanism, using screendumps. Add a simple test for "c".
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 110a6478b7..6e68093bbd 100644
--- a/Makefile
+++ b/Makefile
@@ -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.