@echo off
REM runtest
SET QTVERSION=%4
IF %1 == winscw goto winscw:
IF %1 == armv5 goto armv5:
IF %1 == gcce goto gcce:
goto end:
:winscw
IF EXIST \epoc32\release\winscw\udeb\tst_%2.exe (
call \epoc32\release\winscw\udeb\tst_%2.exe -lightxml
if ERRORLEVEL 1 (
echo ^ >> \Epoc32\winscw\c\system\data\out.txt
echo ^ >> \Epoc32\winscw\c\system\data\out.txt
echo ^^^ >> \Epoc32\winscw\c\system\data\out.txt
echo ^^^ >> \Epoc32\winscw\c\system\data\out.txt
echo ^ >> \Epoc32\winscw\c\system\data\out.txt
echo ^ >> \Epoc32\winscw\c\system\data\out.txt )
copy /Y \Epoc32\winscw\c\system\data\out.txt %3\%2.xml
goto end:
) ELSE (
goto notExist:
)
:ARMV5
IF EXIST \epoc32\release\armv5\urel\tst_%2.exe (
pushd .
cd %2
IF _%5 == _cetest-subdir: (
echo Running cetest from subdir: %6
cd %6
)
IF _%5 == _cetest-pro: (
call cetest -release -f %6 -project-delete -lightxml -o %3\%2.xml
) ELSE (
call cetest -release -project-delete -lightxml -o %3\%2.xml
)
if EXIST %3\%2.xml if ERRORLEVEL 1 (
echo ^ >> %3\%2.xml
echo ^ >> %3\%2.xml
echo ^^^ >> %3\%2.xml
echo ^^^ >> %3\%2.xml
echo ^ >> %3\%2.xml
echo ^ >> %3\%2.xml
)
popd
goto end:
) ELSE (
goto notExist:
)
:gcce
goto end:
:notExist
echo AAA: %3\%2.xml
echo ^ >> %3\%2.xml
echo ^%QTVERSION%^ >> %3\%2.xml
echo ^%QTVERSION%^ >> %3\%2.xml
echo ^ >> %3\%2.xml
echo ^ >> %3\%2.xml
echo ^ >> %3\%2.xml
echo ^^^ >> %3\%2.xml
echo ^^^ >> %3\%2.xml
echo ^ >> %3\%2.xml
echo ^ >> %3\%2.xml
goto end:
:end