Skip to content

Commit e55ea43

Browse files
authored
[circleci] Create run-tests-firefox task. NFC (#21452)
This allows use to create different firefox test runs, just like we already can for chrome.
1 parent e25fa53 commit e55ea43

File tree

1 file changed

+23
-13
lines changed

1 file changed

+23
-13
lines changed

.circleci/config.yml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,16 @@ commands:
333333
- run:
334334
name: submodule update
335335
command: git submodule update --init
336-
test-firefox:
336+
run-tests-firefox:
337337
description: "Runs emscripten tests under firefox"
338+
parameters:
339+
test_targets:
340+
description: "Test suites to run"
341+
type: string
342+
title:
343+
description: "Name of given test suite"
344+
type: string
345+
default: ""
338346
steps:
339347
- prepare-for-tests
340348
- run:
@@ -353,16 +361,7 @@ commands:
353361
user_pref("dom.postMessage.sharedArrayBuffer.bypassCOOP_COEP.insecure.enabled", true);
354362
EOF
355363
- run:
356-
# browser.test_sdl2_mouse and/or SDL2 should be fixed. The case happens
357-
# to be failing here, and the root cause might be related with the
358-
# initial position of the mouse pointer relative to the canvas.
359-
# browser.test_html5_webgl_create_context is skipped because
360-
# anti-aliasing is not well supported.
361-
# browser.test_webgl_offscreen_canvas_in_pthread and
362-
# browser.test_webgl_offscreen_canvas_in_mainthread_after_pthread
363-
# are crashing Firefox (bugzil.la/1281796). The former case is
364-
# further blocked by issue #6897.
365-
name: run tests
364+
name: run tests (<< parameters.title >>)
366365
environment:
367366
GALLIUM_DRIVER: softpipe # TODO: use the default llvmpipe when it supports more extensions
368367
# TODO: Do GL testing when https://bugzil.la/1375585 (lack of WebGL
@@ -382,7 +381,7 @@ commands:
382381
echo "-----"
383382
echo "Running browser tests"
384383
echo "-----"
385-
test/runner browser skip:browser.test_sdl2_mouse skip:browser.test_html5_webgl_create_context skip:browser.test_webgl_offscreen_canvas_in_pthread skip:browser.test_webgl_offscreen_canvas_in_mainthread_after_pthread skip:browser.test_glut_glutget
384+
test/runner << parameters.test_targets >>
386385
# posix and emrun suites are disabled because firefox errors on
387386
# "Firefox is already running, but is not responding."
388387
# TODO: find out a way to shut down and restart firefox
@@ -823,7 +822,18 @@ jobs:
823822
test-browser-firefox:
824823
executor: bionic
825824
steps:
826-
- test-firefox
825+
- run-tests-firefox:
826+
title: "browser"
827+
# browser.test_sdl2_mouse and/or SDL2 should be fixed. The case happens
828+
# to be failing here, and the root cause might be related with the
829+
# initial position of the mouse pointer relative to the canvas.
830+
# browser.test_html5_webgl_create_context is skipped because
831+
# anti-aliasing is not well supported.
832+
# browser.test_webgl_offscreen_canvas_in_pthread and
833+
# browser.test_webgl_offscreen_canvas_in_mainthread_after_pthread
834+
# are crashing Firefox (bugzil.la/1281796). The former case is
835+
# further blocked by issue #6897.
836+
test_targets: "browser skip:browser.test_sdl2_mouse skip:browser.test_html5_webgl_create_context skip:browser.test_webgl_offscreen_canvas_in_pthread skip:browser.test_webgl_offscreen_canvas_in_mainthread_after_pthread skip:browser.test_glut_glutget"
827837
# TODO(sbc): Re-enable once we figure out why the emrun tests are
828838
# locking up.
829839
#test-browser-chrome-emrun:

0 commit comments

Comments
 (0)