Skip to content

Commit 78f0715

Browse files
authored
CI: Add title information when running tests. NFC (#18467)
1 parent de13451 commit 78f0715

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.circleci/config.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,13 @@ commands:
210210
test_targets:
211211
description: "Test suites to run"
212212
type: string
213+
title:
214+
description: "Name of given test suite"
215+
type: string
216+
default: ""
213217
steps:
214218
- run:
215-
name: run tests
219+
name: run tests (<< parameters.title >>)
216220
command: |
217221
./test/runner << parameters.test_targets >>
218222
$EMSDK_PYTHON ./tools/check_clean.py
@@ -232,6 +236,10 @@ commands:
232236
description: "Run with cache frozen"
233237
type: boolean
234238
default: true
239+
title:
240+
description: "Name of given test suite"
241+
type: string
242+
default: ""
235243
steps:
236244
- prepare-for-tests
237245
- when:
@@ -240,6 +248,7 @@ commands:
240248
- freeze-cache
241249
- run-tests:
242250
test_targets: << parameters.test_targets >>
251+
title: << parameters.title >>
243252
- upload-test-results
244253
test-firefox:
245254
description: "Runs emscripten tests under firefox"
@@ -434,6 +443,7 @@ jobs:
434443
# also run a few asan tests. Run these with frozen_cache disabled
435444
# since we don't pre-build all the asan libraries.
436445
frozen_cache: false
446+
title: "asan+lsan"
437447
test_targets: "
438448
asan.test_stat
439449
asan.test_float_builtins
@@ -453,6 +463,7 @@ jobs:
453463
- run-tests:
454464
# also run a single test of EMTEST_BROWSER=node.
455465
# also run a corez test of dynamic linking + forced syslibs.
466+
title: "core2+extras"
456467
test_targets: "
457468
core2
458469
browser.test_pthread_join
@@ -465,6 +476,7 @@ jobs:
465476
frozen_cache: false
466477
# also add a little select testing for wasm2js in -O3
467478
# also add a little select wasmfs testing
479+
title: "core3+extras"
468480
test_targets: "
469481
lto2.test_dylink_syslibs_all
470482
core3
@@ -515,11 +527,14 @@ jobs:
515527
- run: rm -rf $HOME/.jsvu
516528
- install-v8
517529
- run-tests:
530+
title: "wasm64_v8"
518531
test_targets: "wasm64_v8"
519532
- run-tests:
533+
title: "wasm64l"
520534
test_targets: "wasm64l"
521535
- install-latest-node
522536
- run-tests:
537+
title: "wasm64"
523538
test_targets: "wasm64"
524539
- upload-test-results
525540
test-node-compat:
@@ -538,12 +553,16 @@ jobs:
538553
- install-node-version:
539554
node_version: "10.19.0"
540555
- run-tests:
556+
title: "core2.test_hello_world"
541557
test_targets: "core2.test_hello_world"
542558
# Run a few test with the most recent version of node
543559
# In particular we have some tests that require node flags on older
544560
# versions of node but not with the most recent version.
545561
- install-latest-node
546562
- run-tests:
563+
# Run tests that on older versions of node would require flags, but
564+
# those flags should not be injected on newer versions.
565+
title: "core2 subset"
547566
test_targets: "-v core2.test_pthread_create core2.test_i64_invoke_bigint core2.test_source_map"
548567
- upload-test-results
549568
test-other:
@@ -594,6 +613,7 @@ jobs:
594613
- pip-install:
595614
python: "$EMSDK_PYTHON"
596615
- run-tests:
616+
title: "other subset"
597617
test_targets: "
598618
core0.test_dylink_basics
599619
core2.test_sse1
@@ -635,6 +655,7 @@ jobs:
635655
- upload-test-results
636656
# Run a single websockify-based test to ensure it works on windows.
637657
- run-tests:
658+
title: "sockets.test_nodejs_sockets_echo*"
638659
test_targets: "sockets.test_nodejs_sockets_echo*"
639660
- upload-test-results
640661

@@ -669,6 +690,7 @@ jobs:
669690
- run-tests:
670691
# skip other.test_stack_switching_size as we do not currently install
671692
# d8 on mac
693+
title: "other+extras"
672694
test_targets: "
673695
other
674696
sockets.test_nodejs_sockets_echo*

0 commit comments

Comments
 (0)