| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 60e0f2b commit 7f5bcbd
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,45 @@ | |||
| 1 | + if not defined DEPOT_TOOLS_PATH goto depot-tools-not-found | ||
| 2 | + if "%config%"=="Debug" set test_args=%target_arch%.debug | ||
| 3 | + if "%config%"=="Release" set test_args=%target_arch%.release | ||
| 4 | + set savedpath=%path% | ||
| 5 | + set path=%DEPOT_TOOLS_PATH%;%path% | ||
| 6 | + pushd . | ||
| 7 | + | ||
| 8 | + set ERROR_STATUS=0 | ||
| 9 | + echo calling: tools\make-v8.sh | ||
| 10 | + sh tools\make-v8.sh | ||
| 11 | + if errorlevel 1 set ERROR_STATUS=1&goto test-v8-exit | ||
| 12 | + cd %~dp0 | ||
| 13 | + cd deps\v8 | ||
| 14 | + echo running 'python tools\dev\v8gen.py %test_args%' | ||
| 15 | + call python tools\dev\v8gen.py %test_args% | ||
| 16 | + if errorlevel 1 set ERROR_STATUS=1&goto test-v8-exit | ||
| 17 | + echo running 'ninja -C out.gn/%test_args% %v8_build_options%' | ||
| 18 | + call ninja -C out.gn/%test_args% %v8_build_options% | ||
| 19 | + if errorlevel 1 set ERROR_STATUS=1&goto test-v8-exit | ||
| 20 | + set path=%savedpath% | ||
| 21 | + | ||
| 22 | + if not defined test_v8 goto test-v8-intl | ||
| 23 | + echo running 'python tools\run-tests.py %common_v8_test_options% %v8_test_options% --junitout ./v8-tap.xml' | ||
| 24 | + call python tools\run-tests.py %common_v8_test_options% %v8_test_options% --junitout ./v8-tap.xml | ||
| 25 | + | ||
| 26 | + :test-v8-intl | ||
| 27 | + if not defined test_v8_intl goto test-v8-benchmarks | ||
| 28 | + echo running 'python tools\run-tests.py %common_v8_test_options% intl --junitout ./v8-intl-tap.xml' | ||
| 29 | + call python tools\run-tests.py %common_v8_test_options% intl --junitout ./v8-intl-tap.xml | ||
| 30 | + | ||
| 31 | + :test-v8-benchmarks | ||
| 32 | + if not defined test_v8_benchmarks goto test-v8-exit | ||
| 33 | + echo running 'python tools\run-tests.py %common_v8_test_options% benchmarks --junitout ./v8-benchmarks-tap.xml' | ||
| 34 | + call python tools\run-tests.py %common_v8_test_options% benchmarks --junitout ./v8-benchmarks-tap.xml | ||
| 35 | + goto test-v8-exit | ||
| 36 | + | ||
| 37 | + :test-v8-exit | ||
| 38 | + popd | ||
| 39 | + if defined savedpath set path=%savedpath% | ||
| 40 | + exit /b %ERROR_STATUS% | ||
| 41 | + | ||
| 42 | + :depot-tools-not-found | ||
| 43 | + echo Failed to find a suitable depot tools to test v8 | ||
| 44 | + exit /b 1 | ||
| 45 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,6 +45,8 @@ set build_addons_napi= | |||
| 45 | 45 | set test_node_inspect= | |
| 46 | 46 | set test_check_deopts= | |
| 47 | 47 | set js_test_suites=async-hooks inspector known_issues message parallel sequential | |
| 48 | + set v8_test_options= | ||
| 49 | + set v8_build_options= | ||
| 48 | 50 | set "common_test_suites=%js_test_suites% doctool addons addons-napi&set build_addons=1&set build_addons_napi=1" | |
| 49 | 51 | ||
| 50 | 52 | :next-arg | |
@@ -83,6 +85,10 @@ if /i "%1"=="test-async-hooks" set test_args=%test_args% async-hooks&goto arg-o | |||
| 83 | 85 | if /i "%1"=="test-all" set test_args=%test_args% gc internet pummel %common_test_suites%&set build_testgc_addon=1&set cpplint=1&set jslint=1&goto arg-ok | |
| 84 | 86 | if /i "%1"=="test-node-inspect" set test_node_inspect=1&goto arg-ok | |
| 85 | 87 | if /i "%1"=="test-check-deopts" set test_check_deopts=1&goto arg-ok | |
| 88 | + if /i "%1"=="test-v8" set test_v8=1&set custom_v8_test=1&goto arg-ok | ||
| 89 | + if /i "%1"=="test-v8-intl" set test_v8_intl=1&set custom_v8_test=1&goto arg-ok | ||
| 90 | + if /i "%1"=="test-v8-benchmarks" set test_v8_benchmarks=1&set custom_v8_test=1&goto arg-ok | ||
| 91 | + if /i "%1"=="test-v8-all" set test_v8=1&set test_v8_intl=1&set test_v8_benchmarks=1&set custom_v8_test=1&goto arg-ok | ||
| 86 | 92 | if /i "%1"=="jslint" set jslint=1&goto arg-ok | |
| 87 | 93 | if /i "%1"=="jslint-ci" set jslint_ci=1&goto arg-ok | |
| 88 | 94 | if /i "%1"=="lint" set cpplint=1&set jslint=1&goto arg-ok | |
@@ -427,12 +433,18 @@ set USE_EMBEDDED_NODE_INSPECT=1 | |||
| 427 | 433 | goto node-tests | |
| 428 | 434 | ||
| 429 | 435 | :node-tests | |
| 430 | - if "%test_args%"=="" goto cpplint | ||
| 436 | + if "%test_args%"=="" goto test-v8 | ||
| 431 | 437 | if "%config%"=="Debug" set test_args=--mode=debug %test_args% | |
| 432 | 438 | if "%config%"=="Release" set test_args=--mode=release %test_args% | |
| 433 | 439 | echo running 'cctest %cctest_args%' | |
| 434 | 440 | "%config%\cctest" %cctest_args% | |
| 435 | 441 | call :run-python tools\test.py %test_args% | |
| 442 | + goto test-v8 | ||
| 443 | + | ||
| 444 | + :test-v8 | ||
| 445 | + if not defined custom_v8_test goto cpplint | ||
| 446 | + call tools/test-v8.bat | ||
| 447 | + if errorlevel 1 goto exit | ||
| 436 | 448 | goto cpplint | |
| 437 | 449 | ||
| 438 | 450 | :cpplint | |
@@ -503,7 +515,7 @@ echo Failed to create vc project files. | |||
| 503 | 515 | goto exit | |
| 504 | 516 | ||
| 505 | 517 | :help | |
| 506 | - echo vcbuild.bat [debug/release] [msi] [test/test-ci/test-all/test-uv/test-inspector/test-internet/test-pummel/test-simple/test-message/test-async-hooks] [clean] [noprojgen] [small-icu/full-icu/without-intl] [nobuild] [sign] [x86/x64] [vs2015/vs2017] [download-all] [enable-vtune] [lint/lint-ci] [no-NODE-OPTIONS] | ||
| 518 | + echo vcbuild.bat [debug/release] [msi] [test/test-ci/test-all/test-uv/test-inspector/test-internet/test-pummel/test-simple/test-message/test-async-hooks/test-v8/test-v8-intl/test-v8-benchmarks/test-v8-all] [clean] [noprojgen] [small-icu/full-icu/without-intl] [nobuild] [sign] [x86/x64] [vs2015/vs2017] [download-all] [enable-vtune] [lint/lint-ci] [no-NODE-OPTIONS] | ||
| 507 | 519 | echo Examples: | |
| 508 | 520 | echo vcbuild.bat : builds release build | |
| 509 | 521 | echo vcbuild.bat debug : builds debug build | |
@@ -524,6 +536,7 @@ exit /b %ERRORLEVEL% | |||
| 524 | 536 | :exit | |
| 525 | 537 | goto :EOF | |
| 526 | 538 | ||
| 539 | + | ||
| 527 | 540 | rem *************** | |
| 528 | 541 | rem Subroutines | |
| 529 | 542 | rem *************** | |
| Back | FazBrowse Home | New Git URL |
0 commit comments