mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
* restore .gitmodules
* Revert "[TD-13408]<test>: move tests directory out"
This reverts commit 7db7bd9337.
* revert to make tests back
* immigrate file change in stand-alone repo to TDengine
* remove tests repository checkout
Co-authored-by: tangfangzhi <fztang@taosdata.com>
25 lines
No EOL
877 B
Batchfile
25 lines
No EOL
877 B
Batchfile
@echo off
|
|
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")
|
|
set /a a=0
|
|
echo Windows Taosd Test
|
|
for /F "usebackq tokens=*" %%i in (fulltest.bat) do (
|
|
echo Processing %%i
|
|
set /a a+=1
|
|
call %%i ARG1 -w -m localhost > result_!a!.txt 2>error_!a!.txt
|
|
if errorlevel 1 ( call :colorEcho 0c "failed" &echo. && exit 8 ) else ( call :colorEcho 0a "Success" &echo. )
|
|
)
|
|
echo Linux Taosd Test
|
|
for /F "usebackq tokens=*" %%i in (fulltest.bat) do (
|
|
echo Processing %%i
|
|
set /a a+=1
|
|
call %%i ARG1 -w 1 -m %1 > result_!a!.txt 2>error_!a!.txt
|
|
if errorlevel 1 ( call :colorEcho 0c "failed" &echo. && exit 8 ) else ( call :colorEcho 0a "Success" &echo. )
|
|
)
|
|
exit
|
|
|
|
:colorEcho
|
|
echo off
|
|
<nul set /p ".=%DEL%" > "%~2"
|
|
findstr /v /a:%1 /R "^$" "%~2" nul
|
|
del "%~2" > nul 2>&1i |