@@ -333,8 +333,16 @@ commands:
333
333
- run :
334
334
name : submodule update
335
335
command : git submodule update --init
336
- test -firefox :
336
+ run-tests -firefox :
337
337
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 : " "
338
346
steps :
339
347
- prepare-for-tests
340
348
- run :
@@ -353,16 +361,7 @@ commands:
353
361
user_pref("dom.postMessage.sharedArrayBuffer.bypassCOOP_COEP.insecure.enabled", true);
354
362
EOF
355
363
- 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 >>)
366
365
environment :
367
366
GALLIUM_DRIVER : softpipe # TODO: use the default llvmpipe when it supports more extensions
368
367
# TODO: Do GL testing when https://bugzil.la/1375585 (lack of WebGL
@@ -382,7 +381,7 @@ commands:
382
381
echo "-----"
383
382
echo "Running browser tests"
384
383
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 >>
386
385
# posix and emrun suites are disabled because firefox errors on
387
386
# "Firefox is already running, but is not responding."
388
387
# TODO: find out a way to shut down and restart firefox
@@ -823,7 +822,18 @@ jobs:
823
822
test-browser-firefox :
824
823
executor : bionic
825
824
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"
827
837
# TODO(sbc): Re-enable once we figure out why the emrun tests are
828
838
# locking up.
829
839
# test-browser-chrome-emrun:
0 commit comments