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