@@ -954,6 +954,44 @@ jobs:
954954 - run-tests-chrome :
955955 title : " browser64_4gb"
956956 test_targets : " browser64_4gb"
957+ test-browser-firefox :
958+ executor : focal
959+ steps :
960+ - prepare-for-tests
961+ - run-tests-firefox :
962+ title : " browser"
963+ # browser.test_sdl2_mouse and/or SDL2 should be fixed. The case happens
964+ # to be failing here, and the root cause might be related with the
965+ # initial position of the mouse pointer relative to the canvas.
966+ # browser.test_html5_webgl_create_context is skipped because
967+ # anti-aliasing is not well supported.
968+ # browser.test_webgl_offscreen_canvas_in_pthread and
969+ # browser.test_webgl_offscreen_canvas_in_mainthread_after_pthread
970+ # are crashing Firefox (bugzil.la/1281796). The former case is
971+ # further blocked by issue #6897.
972+ test_targets : "
973+ browser
974+ skip:browser.test_sdl2_mouse
975+ skip:browser.test_html5_webgl_create_context
976+ skip:browser.test_webgl_offscreen_canvas_in_pthread
977+ skip:browser.test_webgl_offscreen_canvas_in_mainthread_after_pthread
978+ skip:browser.test_glut_glutget
979+ "
980+ test-browser-firefox-wasm64 :
981+ executor : focal
982+ steps :
983+ - checkout
984+ - run :
985+ name : submodule update
986+ command : git submodule update --init
987+ - pip-install
988+ - install-emsdk
989+ - run-tests-firefox :
990+ title : " browser64"
991+ test_targets : "
992+ browser64.test_sdl_image
993+ browser64.test_dylink_many
994+ "
957995 # TODO(sbc): Re-enable once we figure out why the emrun tests are
958996 # locking up.
959997 # test-browser-chrome-emrun:
@@ -965,6 +1003,72 @@ jobs:
9651003 executor : focal
9661004 steps :
9671005 - test-sockets-chrome
1006+ # windows and mac do not have separate build and test jobs, as they only run
1007+ # a limited set of tests; it is simpler and faster to do it all in one job.
1008+ test-windows :
1009+ working_directory : " ~/path with spaces"
1010+ executor :
1011+ name : win/server-2019
1012+ shell : bash.exe -eo pipefail
1013+ environment :
1014+ PYTHONUNBUFFERED : " 1"
1015+ EMSDK_NOTTY : " 1"
1016+ # clang can compile but not link in the current setup, see
1017+ # https://github.com/emscripten-core/emscripten/pull/11382#pullrequestreview-428902638
1018+ EMTEST_LACKS_NATIVE_CLANG : " 1"
1019+ EMTEST_SKIP_V8 : " 1"
1020+ EMTEST_SKIP_EH : " 1"
1021+ EMTEST_SKIP_WASM64 : " 1"
1022+ EMTEST_SKIP_SCONS : " 1"
1023+ EMTEST_SKIP_RUST : " 1"
1024+ EMTEST_SKIP_NODE_CANARY : " 1"
1025+ EMTEST_BROWSER : " 0"
1026+ steps :
1027+ - checkout
1028+ - run :
1029+ name : Install packages
1030+ command : |
1031+ choco install -y cmake.portable ninja pkgconfiglite
1032+ - run :
1033+ name : Add python to bash path
1034+ command : echo "export PATH=\"$PATH:/c/Python27amd64/\"" >> $BASH_ENV
1035+ # note we do *not* build all libraries and freeze the cache; as we run
1036+ # only limited tests here, it's more efficient to build on demand
1037+ - install-emsdk
1038+ - pip-install :
1039+ python : " $EMSDK_PYTHON"
1040+ - run-tests :
1041+ title : " crossplatform tests"
1042+ test_targets : " --crossplatform-only"
1043+ - upload-test-results
1044+ # Run a single websockify-based test to ensure it works on windows.
1045+ - run-tests :
1046+ title : " sockets.test_nodejs_sockets_echo*"
1047+ test_targets : " sockets.test_nodejs_sockets_echo*"
1048+ - upload-test-results
1049+
1050+ test-mac-arm64 :
1051+ executor : mac-arm64
1052+ environment :
1053+ # We don't install d8 or modern node on the mac runner so we skip any
1054+ # tests that depend on those.
1055+ EMTEST_SKIP_V8 : " 1"
1056+ EMTEST_SKIP_EH : " 1"
1057+ EMTEST_SKIP_WASM64 : " 1"
1058+ EMTEST_SKIP_SCONS : " 1"
1059+ EMTEST_SKIP_RUST : " 1"
1060+ # Some native clang tests assume x86 clang (e.g. -sse2)
1061+ EMTEST_LACKS_NATIVE_CLANG : " 1"
1062+ EMCC_SKIP_SANITY_CHECK : " 1"
1063+ steps :
1064+ - setup-macos
1065+ - install-emsdk
1066+ # TODO: We can't currently do pip install here since numpy and other packages
1067+ # are currently missing arm64 macos binaries.
1068+ - run-tests :
1069+ title : " crossplatform tests"
1070+ test_targets : " --crossplatform-only"
1071+ - upload-test-results
9681072
9691073workflows :
9701074 build-test :
@@ -1010,9 +1114,15 @@ workflows:
10101114 - test-browser-chrome-wasm64-4gb :
10111115 requires :
10121116 - build-linux
1117+ - test-browser-firefox :
1118+ requires :
1119+ - build-linux
1120+ - test-browser-firefox-wasm64
10131121 - test-sockets-chrome :
10141122 requires :
10151123 - build-linux
10161124 - test-jsc
10171125 - test-spidermonkey
10181126 - test-node-compat
1127+ - test-windows
1128+ - test-mac-arm64
0 commit comments