@@ -212,7 +212,7 @@ commands:
212
212
openbox --exit
213
213
wait || true # wait for startx to shutdown cleanly, or not
214
214
test-chrome :
215
- description : " Runs emscripten tests under firefox "
215
+ description : " Runs emscripten browser tests under chrome "
216
216
steps :
217
217
- checkout
218
218
- attach_workspace :
@@ -237,6 +237,32 @@ commands:
237
237
command : |
238
238
export EMTEST_BROWSER="/usr/bin/google-chrome $CHROME_FLAGS_BASE $CHROME_FLAGS_HEADLESS $CHROME_FLAGS_WASM $CHROME_FLAGS_NOCACHE"
239
239
python3 tests/runner.py browser
240
+ test-sockets-chrome :
241
+ description : " Runs emscripten sockets tests under chrome"
242
+ steps :
243
+ - checkout
244
+ - attach_workspace :
245
+ # Must be absolute path or relative path from working_directory
246
+ at : ~/
247
+ - run :
248
+ name : download chrome
249
+ command : |
250
+ wget -O ~/chrome.deb https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb
251
+ dpkg -i ~/chrome.deb
252
+ - run :
253
+ name : run sockets tests
254
+ environment :
255
+ EMTEST_LACKS_SOUND_HARDWARE : " 1"
256
+ EMTEST_DETECT_TEMPFILE_LEAKS : " 0"
257
+ # --no-sandbox becasue we are running as root and chrome requires
258
+ # this flag for now: https://crbug.com/638180
259
+ CHROME_FLAGS_BASE : " --no-first-run -start-maximized --no-sandbox --use-gl=swiftshader --user-data-dir=/tmp/chrome-emscripten-profile"
260
+ CHROME_FLAGS_HEADLESS : " --headless --remote-debugging-port=1234"
261
+ CHROME_FLAGS_WASM : " --enable-features=WebAssembly --enable-features=SharedArrayBuffer --disable-features=WebAssemblyTrapHandler --js-flags=\" --experimental-wasm-threads --harmony-sharedarraybuffer --no-wasm-disable-structured-cloning\" "
262
+ CHROME_FLAGS_NOCACHE : " --disk-cache-dir=/dev/null --disk-cache-size=1 --media-cache-size=1 --disable-application-cache --incognito"
263
+ command : |
264
+ export EMTEST_BROWSER="/usr/bin/google-chrome $CHROME_FLAGS_BASE $CHROME_FLAGS_HEADLESS $CHROME_FLAGS_WASM $CHROME_FLAGS_NOCACHE"
265
+ python tests/runner.py sockets
240
266
241
267
jobs :
242
268
build :
@@ -308,6 +334,10 @@ jobs:
308
334
executor : bionic
309
335
steps :
310
336
- test-chrome
337
+ test-sockets-chrome :
338
+ executor : bionic
339
+ steps :
340
+ - test-sockets-chrome
311
341
test-ab :
312
342
executor : bionic
313
343
steps :
@@ -475,6 +505,9 @@ workflows:
475
505
- test-browser-chrome :
476
506
requires :
477
507
- build
508
+ - test-sockets-chrome :
509
+ requires :
510
+ - build
478
511
- test-ab :
479
512
requires :
480
513
- build
0 commit comments