@@ -51,6 +51,7 @@ set "common_test_suites=%js_test_suites% doctool addons addons-napi&set build_ad
51
51
set http2_debug =
52
52
set nghttp2_debug =
53
53
set link_module =
54
+ set no_cctest =
54
55
55
56
:next-arg
56
57
if " %1 " == " " goto args-done
@@ -115,6 +116,7 @@ if /i "%1"=="no-NODE-OPTIONS" set no_NODE_OPTIONS=1&goto arg-ok
115
116
if /i " %1 " == " debug-http2" set debug_http2 = 1& goto arg-ok
116
117
if /i " %1 " == " debug-nghttp2" set debug_nghttp2 = 1& goto arg-ok
117
118
if /i " %1 " == " link-module" set " link_module = --link-module=%2 %link_module% " & goto arg-ok-2
119
+ if /i " %1 " == " no-cctest" set no_cctest = 1& goto arg-ok
118
120
119
121
echo Error: invalid command line option `%1 `.
120
122
exit /b 1
@@ -275,6 +277,7 @@ set "msbcpu=/m:2"
275
277
if " %NUMBER_OF_PROCESSORS% " == " 1" set " msbcpu = /m:1"
276
278
set " msbplatform = Win32"
277
279
if " %target_arch% " == " x64" set " msbplatform = x64"
280
+ if " %target% " == " Build" if defined no_cctest set target = node
278
281
msbuild node.sln %msbcpu% /t:%target% /p:Configuration=%config% /p:Platform=%msbplatform% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
279
282
if errorlevel 1 goto exit
280
283
if " %target% " == " Clean" goto exit
@@ -472,8 +475,10 @@ if errorlevel 1 goto exit
472
475
if " %test_args% " == " " goto test-v8
473
476
if " %config% " == " Debug" set test_args = --mode=debug %test_args%
474
477
if " %config% " == " Release" set test_args = --mode=release %test_args%
478
+ if defined no_cctest echo Skipping cctest because no-cctest was specified && goto run-test-py
475
479
echo running 'cctest %cctest_args% '
476
480
" %config% \cctest" %cctest_args%
481
+ :run-test-py
477
482
call :run-python tools\test.py %test_args%
478
483
goto test-v8
479
484
@@ -550,7 +555,7 @@ echo Failed to create vc project files.
550
555
goto exit
551
556
552
557
:help
553
- echo vcbuild.bat [debug/release] [msi] [test/test-ci/test-all/test-addons/test-addons-napi/test-internet/test-pummel/test-simple/test-message/test-gc/test-tick-processor/test-known-issues/test-node-inspect/test-check-deopts/test-npm/test-async-hooks/test-v8/test-v8-intl/test-v8-benchmarks/test-v8-all] [ignore-flaky] [static/dll] [noprojgen] [small-icu/full-icu/without-intl] [nobuild] [nosnapshot] [noetw] [noperfctr] [licensetf] [sign] [ia32/x86/x64] [vs2015/vs2017] [download-all] [enable-vtune] [lint/lint-ci/lint-js/lint-js-ci] [package] [build-release] [upload] [no-NODE-OPTIONS] [link-module path-to-module] [debug-http2] [debug-nghttp2] [clean]
558
+ echo vcbuild.bat [debug/release] [msi] [test/test-ci/test-all/test-addons/test-addons-napi/test-internet/test-pummel/test-simple/test-message/test-gc/test-tick-processor/test-known-issues/test-node-inspect/test-check-deopts/test-npm/test-async-hooks/test-v8/test-v8-intl/test-v8-benchmarks/test-v8-all] [ignore-flaky] [static/dll] [noprojgen] [small-icu/full-icu/without-intl] [nobuild] [nosnapshot] [noetw] [noperfctr] [licensetf] [sign] [ia32/x86/x64] [vs2015/vs2017] [download-all] [enable-vtune] [lint/lint-ci/lint-js/lint-js-ci] [package] [build-release] [upload] [no-NODE-OPTIONS] [link-module path-to-module] [debug-http2] [debug-nghttp2] [clean] [no-cctest]
554
559
echo Examples:
555
560
echo vcbuild.bat : builds release build
556
561
echo vcbuild.bat debug : builds debug build
@@ -560,6 +565,7 @@ echo vcbuild.bat build-release : builds the release distribution as
560
565
echo vcbuild.bat enable-vtune : builds nodejs with Intel VTune profiling support to profile JavaScript
561
566
echo vcbuild.bat link-module my_module.js : bundles my_module as built-in module
562
567
echo vcbuild.bat lint : runs the C++ and JavaScript linter
568
+ echo vcbuild.bat no-cctest : skip building cctest.exe
563
569
goto exit
564
570
565
571
:run-python
0 commit comments