blob: 742e43f9e785204b29ad5301525cf295bdc11361 [file] [log] [blame]
Bram Moolenaarc0fe4972018-10-25 16:53:19 +02001# Portable Makefile for running indent tests.
2
RestorerZ8291e912024-03-16 15:08:53 +01003.SUFFIXES:
4.PHONY: test clean testclean
5
RestorerZcd33faf2024-07-04 17:47:16 +02006VIMPROG = vim
Bram Moolenaar30700cd2018-12-10 21:36:56 +01007VIMRUNTIME = ..
Bram Moolenaarc0fe4972018-10-25 16:53:19 +02008
9# Run the tests that didn't run yet or failed previously.
10# If a test succeeds a testdir/*.out file will be written.
11# If a test fails a testdir/*.fail file will be written.
12test:
David Mandelberg54c88d02025-03-12 22:43:08 +010013 VIMRUNTIME=$(VIMRUNTIME) $(VIMPROG) --clean --not-a-term -u testdir/runtest.vim || \
14 { \
15 retval=$$?; \
16 for fail in testdir/*.fail; do \
17 [ -f "$$fail" ] || continue; \
18 echo "$$fail:"; \
19 cat "$$fail"; \
20 done; \
21 exit $$retval; \
22 }
Christian Brabandt203c7222024-10-29 20:21:42 +010023 @echo "INDENT TESTS: DONE"
Bram Moolenaarc0fe4972018-10-25 16:53:19 +020024
25
Bram Moolenaar7ff78462020-07-10 22:00:53 +020026clean testclean:
Bram Moolenaare13a3902019-04-27 17:57:31 +020027 rm -f testdir/*.fail testdir/*.out