test-all.bat 694 字节
Newer Older
L
liuyq-617 已提交
1
@echo off
L
liuyq-617 已提交
2 3 4
SETLOCAL EnableDelayedExpansion
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do     rem"') do (  set "DEL=%%a")
for /F "usebackq tokens=*" %%i in (fulltest.bat) do (
L
liuyq-617 已提交
5
    echo Processing %%i
L
liuyq-617 已提交
6
    call %%i ARG1 -w 1 -m %1 > result.txt 2>error.txt
7 8 9
    if errorlevel 1 ( call :colorEcho 0c "failed" &echo. && exit 8 ) else ( call :colorEcho 0a "Success" &echo. ) 
    call %%i ARG1 -w -m localhost > result.txt 2>error.txt
    if errorlevel 1 ( call :colorEcho 0c "failed" &echo. && exit 8 ) else ( call :colorEcho 0a "Success" &echo. )  
L
liuyq-617 已提交
10
)
L
liuyq-617 已提交
11
exit
L
liuyq-617 已提交
12

L
liuyq-617 已提交
13 14 15 16 17
:colorEcho
echo off
<nul set /p ".=%DEL%" > "%~2"
findstr /v /a:%1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1i