anchor.diff:      exit /b 0
   
   :RunSingleTest
  +    if "%_LoopCount%"=="" goto RunSingleTestOnce
  +    set _ContinueRunningTests=true
  +    FOR /L %%l IN (1,1,%_LoopCount%) DO call :RunSingleTestInLoop %*
  +    goto EOF
  +
  +:RunSingleTestInLoop
  +    if NOT "%_ContinueRunningTests%"=="true" goto EOF
  +    call :RunSingleTestOnce %*
  +    if NOT "%LastTestSucceeded%"=="true" set _ContinueRunningTests=false
  +    goto EOF
  +
  +:RunSingleTestOnce
       pushd "%~1"
       echo Running '%~1'
  +    set LastTestSucceeded=false
       
       ::Build the app
       call msbuild /p:Platform=%_Platform%;VS_NDKRoot="%_NdkRoot%";VS_SDKRoot="%_SdkRoot%";PackageDebugSymbols=true > build.log
  
positive.code: if /i "%~1"=="/SdkRoot"     goto SetSdkRoot
  if /i "%~1"=="/NdkRoot"     goto SetNdkRoot
  if /i "%~1"=="/v"           set _Verbose=1& goto NextArg
  if /i "%~1"=="/Tests"       goto SetTests
  echo ERROR: Unknown argument '%~1'.&exit /b -1
  
  
negative.code: 
      ::Run Glass
      call "%_GlassDir%glass2.exe" %_GlassFlags% %_GlassLog%
      if NOT "%ERRORLEVEL%"=="0" echo ERROR: Test failed. See ErrorLog.xml for more information.& set FAILED_TESTS="%~1" %FAILED_TESTS%& goto RunSingleTestDone
  
      set LastTestSucceeded=true
      
      :RunSingleTestDone
      popd
  