anchor.diff:  :test_unit_error
   :: echo 8 > %cache_dir%\error_code.txt
   :: type %cache_dir%\error_code.txt
  -for /F %%# in ('wmic os get localdatetime^|findstr 20') do set end=%%#
  -set end=%end:~4,10%
  -call :timestamp "%start%" "%end%" "1 card TestCases Total"
  -call :timestamp "%start%" "%end%" "TestCases Total"
   echo Running unit tests failed, will exit!
   exit /b 8
   
  
positive.code: -DINFERENCE_DEMO_INSTALL_DIR=%INFERENCE_DEMO_INSTALL_DIR% -DWITH_STATIC_LIB=%WITH_STATIC_LIB% ^
  -DWITH_TENSORRT=%WITH_TENSORRT% -DTENSORRT_ROOT="%TENSORRT_ROOT%" -DMSVC_STATIC_CRT=%MSVC_STATIC_CRT% ^
  -DWITH_UNITY_BUILD=%WITH_UNITY_BUILD% -DCUDA_ARCH_NAME=%CUDA_ARCH_NAME% >> %work_dir%\win_cmake.sh
  set FLAGS_fraction_of_gpu_memory_to_use=0.92
  
  %cache_dir%\tools\busybox64.exe bash %work_dir%\tools\windows\run_unittests.sh %NIGHTLY_MODE% %PRECISION_TEST% %WITH_GPU%
  
  
negative.code: %THIRD_PARTY_PATH:/=\%\install\mkldnn\bin;%THIRD_PARTY_PATH:/=\%\install\warpctc\bin;%PATH%
  
  if "%WITH_GPU%"=="ON" (
      call:parallel_test_base_gpu
  ) else (
      call:parallel_test_base_cpu
  )
  
  set error_code=%ERRORLEVEL%
  
  for /F %%# in ('wmic os get localdatetime^|findstr 20') do set end=%%#
  set end=%end:~4,10%
  call :timestamp "%start%" "%end%" "1 card TestCases Total"
  call :timestamp "%start%" "%end%" "TestCases Total"
  
  if %error_code% NEQ 0 (
      exit /b 8
  ) else ( 
      goto:eof 
  )
  
  :parallel_test_base_gpu
  