blob: c1ac2734dc188c66f7b5caf3a4cd28821545a41f [file] [log] [blame]
Bram Moolenaar46acad72023-06-11 19:04:18 +01001# Portable Makefile for running syntax tests.
2
3# Override this if needed, e.g. with ../../src/vim
4VIMPROG = vim
5
6# "runtime" relative to "runtime/syntax/testdir"
7VIMRUNTIME = ../..
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
14RUN_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.
19test:
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
26clean testclean:
27 rm -f testdir/failed/* testdir/done/* testdir/vimcmd