@@ -51,6 +51,7 @@ set "common_test_suites=%js_test_suites% doctool addons addons-napi&set build_ad
5151set http2_debug =
5252set nghttp2_debug =
5353set link_module =
54+ set no_cctest =
5455
5556:next-arg
5657if " %1 " == " " goto args-done
@@ -115,6 +116,7 @@ if /i "%1"=="no-NODE-OPTIONS" set no_NODE_OPTIONS=1&goto arg-ok
115116if /i " %1 " == " debug-http2" set debug_http2 = 1& goto arg-ok
116117if /i " %1 " == " debug-nghttp2" set debug_nghttp2 = 1& goto arg-ok
117118if /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
118120
119121echo Error: invalid command line option `%1 `.
120122exit /b 1
@@ -275,6 +277,7 @@ set "msbcpu=/m:2"
275277if " %NUMBER_OF_PROCESSORS% " == " 1" set " msbcpu = /m:1"
276278set " msbplatform = Win32"
277279if " %target_arch% " == " x64" set " msbplatform = x64"
280+ if " %target% " == " Build" if defined no_cctest set target = node
278281msbuild node.sln %msbcpu% /t:%target% /p:Configuration=%config% /p:Platform=%msbplatform% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
279282if errorlevel 1 goto exit
280283if " %target% " == " Clean" goto exit
@@ -472,8 +475,10 @@ if errorlevel 1 goto exit
472475if " %test_args% " == " " goto test-v8
473476if " %config% " == " Debug" set test_args = --mode=debug %test_args%
474477if " %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
475479echo running 'cctest %cctest_args% '
476480" %config% \cctest" %cctest_args%
481+ :run-test-py
477482call :run-python tools\test.py %test_args%
478483goto test-v8
479484
@@ -550,7 +555,7 @@ echo Failed to create vc project files.
550555goto exit
551556
552557: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]
554559echo Examples:
555560echo vcbuild.bat : builds release build
556561echo vcbuild.bat debug : builds debug build
@@ -560,6 +565,7 @@ echo vcbuild.bat build-release : builds the release distribution as
560565echo vcbuild.bat enable-vtune : builds nodejs with Intel VTune profiling support to profile JavaScript
561566echo vcbuild.bat link-module my_module.js : bundles my_module as built-in module
562567echo vcbuild.bat lint : runs the C++ and JavaScript linter
568+ echo vcbuild.bat no-cctest : skip building cctest.exe
563569goto exit
564570
565571:run-python
0 commit comments