1@echo off 2rem Used by the buildbot "test" step. 3setlocal 4 5set here=%~dp0 6set rt_opts=-q -d 7set regrtest_args= 8 9:CheckOpts 10if "%1"=="-x64" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts 11if "%1"=="-d" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts 12if "%1"=="-O" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts 13if "%1"=="-q" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts 14if "%1"=="+d" (set rt_opts=%rt_opts:-d=%) & shift & goto CheckOpts 15if "%1"=="+q" (set rt_opts=%rt_opts:-q=%) & shift & goto CheckOpts 16if NOT "%1"=="" (set regrtest_args=%regrtest_args% %1) & shift & goto CheckOpts 17 18echo on 19call "%here%..\..\PCbuild\rt.bat" %rt_opts% -uall -rwW %regrtest_args% 20