1if not defined DEPOT_TOOLS_PATH goto depot-tools-not-found 2if "%config%"=="Debug" set test_args=%target_arch%.debug 3if "%config%"=="Release" set test_args=%target_arch%.release 4set savedpath=%path% 5set path=%DEPOT_TOOLS_PATH%;%path% 6pushd . 7 8set ERROR_STATUS=0 9echo calling: tools\make-v8.sh 10sh tools\make-v8.sh 11if errorlevel 1 set ERROR_STATUS=1&goto test-v8-exit 12cd %~dp0 13cd deps\v8 14echo running 'python tools\dev\v8gen.py %test_args%' 15call python tools\dev\v8gen.py %test_args% 16if errorlevel 1 set ERROR_STATUS=1&goto test-v8-exit 17echo running 'ninja -C out.gn/%test_args% %v8_build_options%' 18call ninja -C out.gn/%test_args% %v8_build_options% 19if errorlevel 1 set ERROR_STATUS=1&goto test-v8-exit 20set path=%savedpath% 21 22if not defined test_v8 goto test-v8-intl 23echo running 'python tools\run-tests.py %common_v8_test_options% %v8_test_options% --junitout ./v8-tap.xml' 24call python tools\run-tests.py %common_v8_test_options% %v8_test_options% --junitout ./v8-tap.xml 25 26:test-v8-intl 27if not defined test_v8_intl goto test-v8-benchmarks 28echo running 'python tools\run-tests.py %common_v8_test_options% intl --junitout ./v8-intl-tap.xml' 29call python tools\run-tests.py %common_v8_test_options% intl --junitout ./v8-intl-tap.xml 30 31:test-v8-benchmarks 32if not defined test_v8_benchmarks goto test-v8-exit 33echo running 'python tools\run-tests.py %common_v8_test_options% benchmarks --junitout ./v8-benchmarks-tap.xml' 34call python tools\run-tests.py %common_v8_test_options% benchmarks --junitout ./v8-benchmarks-tap.xml 35goto test-v8-exit 36 37:test-v8-exit 38popd 39if defined savedpath set path=%savedpath% 40exit /b %ERROR_STATUS% 41 42:depot-tools-not-found 43echo Failed to find a suitable depot tools to test v8 44exit /b 1 45 46