Make_mvc.mak (1056B)
1 # 2 # Makefile for running indent tests on OS Windows. 3 # Made on the base of a indent/Makefile. 4 # 2024-03-13, Restorer 5 # 6 7 # included common tools 8 !INCLUDE ..\..\src\auto\nmake\tools.mak 9 10 LSFLAGS = /A:-D /B /O:N /L /S 11 12 .SUFFIXES: 13 14 VIMPROG = ..\..\src\vim.exe 15 VIMRUNTIME = .. 16 17 # Run the tests that didn't run yet or failed previously. 18 # If a test succeeds a testdir\*.out file will be written. 19 # If a test fails a testdir\*.fail file will be written. 20 test : 21 @ set "VIMRUNTIME=$(VIMRUNTIME)" 22 @ $(VIMPROG) --clean --not-a-term -u testdir\runtest.vim && \ 23 (echo:&echo: INDENT TESTS: DONE &echo:) || \ 24 <<echofail.bat 25 set "retval=%ERRORLEVEL%" 26 @echo off 27 echo:&echo: INDENT TESTS: FAILED 28 for /F %%G in ('2^> nul $(LS) $(LSFLAGS) testdir\*.fail') do ( 29 call set "fail=%%fail%% %%G") 30 if defined fail ( 31 for %%G in (%fail%) do @(echo:&echo: %%~nxG:&echo: && type %%G) 32 ) 33 exit /B %retval% 34 << 35 36 clean testclean : 37 @ if exist testdir\*.fail $(RM) testdir\*.fail 38 @ if exist testdir\*.out $(RM) testdir\*.out 39 40 # vim: set noet sw=8 ts=8 sts=0 wm=0 tw=79 ft=make: