diff 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
line wrap: on
line diff
--- a/runtime/syntax/Makefile
+++ b/runtime/syntax/Makefile
@@ -1,7 +1,8 @@
 # Portable Makefile for running syntax tests.
 
-# Override this if needed, e.g. with ../../src/vim
-VIMPROG = vim
+# Override this if needed, the default assumes Vim was build in the src dir.
+#VIMPROG = vim
+VIMPROG = ../../src/vim
 
 # "runtime" relative to "runtime/syntax/testdir"
 VIMRUNTIME = ../..
@@ -13,15 +14,20 @@ VIMRUNTIME = ../..
 
 RUN_VIMTEST = VIMRUNTIME=$(VIMRUNTIME) $(VALGRIND) $(ENVVARS) ../$(VIMPROG) -f $(GUI_FLAG)
 
+# Uncomment this line for debugging
+# DEBUGLOG = --log testlog
+
 # Run the tests that didn't run yet or failed previously.
 # If a test succeeds a testdir/done/{name} file will be written.
 # If a test fails a testdir/failed/{name}.dump file will be written.
+# Progress and error messages can be found in "testdir/messages".
 test:
 	@# the "vimcmd" file is used by the screendump utils
 	@echo "../$(VIMPROG)" > testdir/vimcmd
 	@echo "$(RUN_VIMTEST)" >> testdir/vimcmd
-	VIMRUNTIME=$(VIMRUNTIME) $(VIMPROG) --clean --not-a-term -u testdir/runtest.vim
+	VIMRUNTIME=$(VIMRUNTIME) $(VIMPROG) --clean --not-a-term $(DEBUGLOG) -u testdir/runtest.vim
+	@tail -n 5 testdir/messages
 
 
 clean testclean:
-	rm -f testdir/failed/* testdir/done/* testdir/vimcmd
+	rm -f testdir/failed/* testdir/done/* testdir/vimcmd testdir/messages