IF NOT EXIST L: (net use L: \\europe.bmw.corp\ddfs1\ca)
REM Settings: project directory
set VIRTKHOME=C:\Users\qxf9208\Desktop\virtuelle kundenfahrt
REM set VIRTKHOME=%WORKSPACE%
set CMVERSION=4.0.4
REM Set license
set IPGLICENSES=L:\share\ams\IPG\%CMVERSION%\XP\etc\License_ohne_VDS
set IPGHOME=L:\share\ams\IPG\%CMVERSION%\XP
REM Create folder for simulation results
set DATETIME=%date:~-4%_%date:~3,2%_%date:~0,2%__%time:~0,2%_%time:~3,2%_%time:~6,2%
set REGRESSIONROOT=%VIRTKHOME%\tags\builds\regression-results\1
mkdir "%REGRESSIONROOT%"
REM Run CarMaker simulation
set TESTSSUCCESSFUL=0
for /f %%i IN ('dir /r /b "%VIRTKHOME%\Data\TestRun\Vkf"') do (
"%VIRTKHOME%\src\CarMaker.win32.exe" -simoutput "%REGRESSIONROOT%" -logdir "%REGRESSIONROOT%" -appdir "%VIRTKHOME%" -dstore Vkf\%%i
REM Perform regression tests (nrmse.exe)
"%VIRTKHOME%\tags\builds\regression-bin\nrmse.exe" "%VIRTKHOME%" "%%i"
if !ERRORLEVEL! GEQ 1 set TESTSSUCCESSFUL=!ERRORLEVEL!
)
REM Cleanup CarMaker
taskkill /F /IM apobrokerd.exe > NUL
if %TESTSSUCCESSFUL% GEQ 1 EXIT /B 1