wtest.bat 1.6 KB
Newer Older
S
TD-1057  
Shengliang Guan 已提交
1 2 3 4 5 6 7 8
@echo off

echo TDengine in windows
echo Start TDengine Testing Case ...

set "SCRIPT_DIR=%~dp0"
echo SCRIPT_DIR: %SCRIPT_DIR%

S
TD-1207  
Shengliang Guan 已提交
9 10
set "BUILD_DIR=%~dp0..\..\debug\build\bin"
set "TSIM=%~dp0..\..\debug\build\bin\tsim"
S
TD-1057  
Shengliang Guan 已提交
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
echo BUILD_DIR:  %BUILD_DIR%

set "SIM_DIR=%~dp0..\..\sim"
echo SIM_DIR:    %SIM_DIR%

set "TSIM_DIR=%~dp0..\..\sim\tsim"
echo TSIM_DIR:   %TSIM_DIR%

set "CFG_DIR=%~dp0..\..\sim\tsim\cfg"
echo CFG_DIR:    %CFG_DIR%

set "LOG_DIR=%~dp0..\..\sim\tsim\log"
echo LOG_DIR:    %LOG_DIR%

set "TAOS_CFG=%~dp0..\..\sim\tsim\cfg\taos.cfg"
echo TAOS_CFG:   %TAOS_CFG%

if not exist %SIM_DIR%  mkdir %SIM_DIR%
if not exist %TSIM_DIR% mkdir %TSIM_DIR%
if exist %CFG_DIR% rmdir /s/q %CFG_DIR%
if exist %LOG_DIR% rmdir /s/q %LOG_DIR%
if not exist %CFG_DIR% mkdir %CFG_DIR%
if not exist %LOG_DIR% mkdir %LOG_DIR%

S
TD-1207  
Shengliang Guan 已提交
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
echo firstEp        localhost     > %TAOS_CFG%
echo serverPort     7100          >> %TAOS_CFG%
echo logDir         %LOG_DIR%     >> %TAOS_CFG%
echo scriptDir      %SCRIPT_DIR%  >> %TAOS_CFG%
echo numOfLogLines  100000000     >> %TAOS_CFG%
echo rpcDebugFlag   143           >> %TAOS_CFG%
echo tmrDebugFlag   131           >> %TAOS_CFG%
echo cDebugFlag     143           >> %TAOS_CFG%
echo udebugFlag     143           >> %TAOS_CFG%
echo wal            0             >> %TAOS_CFG%
echo asyncLog       0             >> %TAOS_CFG%
echo locale         en_US.UTF-8   >> %TAOS_CFG%
echo enableCoreFile 1             >> %TAOS_CFG%

set "FILE_NAME=testSuite.sim"
S
TD-1057  
Shengliang Guan 已提交
50 51 52 53 54 55
if "%1" == "-f" set "FILE_NAME=%2"

echo FILE_NAME:  %FILE_NAME%
echo ExcuteCmd:  %tsim% -c %CFG_DIR% -f %FILE_NAME%

%tsim% -c %CFG_DIR% -f %FILE_NAME%