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% --slow-tests-cutoff 1000000 --json-test-results v8-tap.xml' 24call python tools\run-tests.py %common_v8_test_options% %v8_test_options% --slow-tests-cutoff 1000000 --json-test-results v8-tap.xml 25call python ..\..\tools\v8-json-to-junit.py < v8-tap.xml > v8-tap.json 26 27:test-v8-intl 28if not defined test_v8_intl goto test-v8-benchmarks 29echo running 'python tools\run-tests.py %common_v8_test_options% intl --slow-tests-cutoff 1000000 --json-test-results v8-intl-tap.xml' 30call python tools\run-tests.py %common_v8_test_options% intl --slow-tests-cutoff 1000000 --json-test-results ./v8-intl-tap.xml 31call python ..\..\tools\v8-json-to-junit.py < v8-intl-tap.xml > v8-intl-tap.json 32 33:test-v8-benchmarks 34if not defined test_v8_benchmarks goto test-v8-exit 35echo running 'python tools\run-tests.py %common_v8_test_options% benchmarks --slow-tests-cutoff 1000000 --json-test-results v8-benchmarks-tap.xml' 36call python tools\run-tests.py %common_v8_test_options% benchmarks --slow-tests-cutoff 1000000 --json-test-results ./v8-benchmarks-tap.xml 37call python ..\..\tools\v8-json-to-junit.py < v8-benchmarks-tap.xml > v8-benchmarks-tap.json 38goto test-v8-exit 39 40:test-v8-exit 41popd 42if defined savedpath set path=%savedpath% 43exit /b %ERROR_STATUS% 44 45:depot-tools-not-found 46echo Failed to find a suitable depot tools to test v8 47exit /b 1 48 49