Skip to content

Commit 4cd3090

Browse files
bnoordhuisjasnell
authored andcommitted
build: run cctests as part of test-ci target
Enable the cctests on the CI now that they know how to write TAP output. PR-URL: #8034 Reviewed-By: James M Snell <[email protected]>
1 parent 62f0576 commit 4cd3090

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ test-ci-js:
211211
$(TEST_CI_ARGS) $(CI_JS_SUITES)
212212

213213
test-ci: | build-addons
214+
out/Release/cctest --gtest_output=tap:cctest.tap
214215
$(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \
215216
--mode=release --flaky-tests=$(FLAKY_TESTS) \
216217
$(TEST_CI_ARGS) $(CI_NATIVE_SUITES) $(CI_JS_SUITES)

vcbuild.bat

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ set noprojgen=
2020
set nobuild=
2121
set nosign=
2222
set nosnapshot=
23+
set cctest_args=
2324
set test_args=
2425
set package=
2526
set msi=
@@ -56,7 +57,7 @@ if /i "%1"=="noetw" set noetw=1&goto arg-ok
5657
if /i "%1"=="noperfctr" set noperfctr=1&goto arg-ok
5758
if /i "%1"=="licensertf" set licensertf=1&goto arg-ok
5859
if /i "%1"=="test" set test_args=%test_args% addons doctool known_issues message parallel sequential -J&set jslint=1&set build_addons=1&goto arg-ok
59-
if /i "%1"=="test-ci" set test_args=%test_args% %test_ci_args% -p tap --logfile test.tap addons doctool inspector known_issues message sequential parallel&set build_addons=1&goto arg-ok
60+
if /i "%1"=="test-ci" set test_args=%test_args% %test_ci_args% -p tap --logfile test.tap addons doctool inspector known_issues message sequential parallel&set cctest_args=%cctest_args% --gtest_output=tap:cctest.tap&set build_addons=1&goto arg-ok
6061
if /i "%1"=="test-addons" set test_args=%test_args% addons&set build_addons=1&goto arg-ok
6162
if /i "%1"=="test-simple" set test_args=%test_args% sequential parallel -J&goto arg-ok
6263
if /i "%1"=="test-message" set test_args=%test_args% message&goto arg-ok
@@ -333,8 +334,8 @@ goto run-tests
333334
if "%test_args%"=="" goto jslint
334335
if "%config%"=="Debug" set test_args=--mode=debug %test_args%
335336
if "%config%"=="Release" set test_args=--mode=release %test_args%
336-
echo running 'cctest'
337-
"%config%\cctest"
337+
echo running 'cctest %cctest_args%'
338+
"%config%\cctest" %cctest_args%
338339
echo running 'python tools\test.py %test_args%'
339340
python tools\test.py %test_args%
340341
goto jslint

0 commit comments

Comments
 (0)