Makefile (639B)
1 # Portable Makefile for running indent tests. 2 3 .SUFFIXES: 4 .PHONY: test clean testclean 5 6 VIMPROG = vim 7 VIMRUNTIME = .. 8 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. 12 test: 13 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 } 23 @echo "INDENT TESTS: DONE" 24 25 26 clean testclean: 27 rm -f testdir/*.fail testdir/*.out