-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-sample.yml
502 lines (472 loc) · 13.3 KB
/
config-sample.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
chrome:
title: The Chromium web browser
all:
title: All build targets
chrome_sandbox:
title: Helper app for Chrome OS
devchrome:
title: Chromium browser with user-data-dir
targets:
- chrome_sandbox:
condition: OS==chromeos
- chrome
configs:
default:
cmd: ${Build_dir}/chrome
args:
- --user-data-dir=${HOME}/.chrome_dev
debug:
cmd: ${debugger}
args:
- --args
- ${Build_dir}/chrome
- --no-sandbox
- --disable-hang-monitor
- --user-data-dir=${HOME}/.chrome_dev
asan:
env:
name: ASAN_OPTIONS
delim: ':'
value:
- alloc_dealloc_mismatch=0
- allocator_may_return_null=0
- allow_user_segv_handler=0
- check_malloc_usable_size=0
- detect_leaks=1
- detect_odr_violation=0
- detect_stack_use_after_return=1
- fast_unwind_on_fatal=1
- handle_abort=1
- handle_segv=1
- handle_sigbus=1
- handle_sigfpe=1
- handle_sigill=1
- max_uar_stack_size_log=16
- print_scariness=1
- print_summary=1
- print_suppressions=0
- redzone=32
- strict_memcmp=0
- symbolize=0
- use_sigaltstack=1
cmd: ${Build_dir}/chrome
args:
- --js-flags=--expose_gc --verify-heap
- --user-data-dir=${HOME}/.chrome_asan
- --no-first-run
- --use-gl=swiftshader
- --no-sandbox
- --disable-in-process-stack-traces
- --headless
profile:
cmd: pprof
args:
- -gv
- ${Build_dir}/chrome
- /tmp/cpuprofile
content_shell:
title: The Chromium Content Shell (test app)
configs:
default:
cmd:
- ${Build_dir}/content_shell
args:
- --crash-dumps-dir=${Build_dir}/content_shell_crashes
- --data-path=${HOME}/.content_shell_dev
debug:
cmd:
- ${debugger}
args:
- --args
- ${Build_dir}/content_shell
- --no-sandbox
- --disable-hang-monitor
- --data-path=${HOME}/.content_shell_dev
asan:
cmd:
- ${Build_dir}/content_shell
args:
- --allow-file-access-from-files
- --disable-gl-drawing-for-tests
- --disable-hang-monitor
- --disable-metrics
- --disable-popup-blocking
- --disable-prompt-on-repost
- --enable-experimental-extension-apis
- --enable-extension-apps
- --enable-extension-timeline-api
- --js-flags=--expose-gc --verify-heap
- --no-sandbox
- --use-gl=osmesa
- --user-data-dir=${HOME}/.chrome_asan
content_browsertests_apk:
targets:
- ${self}
- forwarder2
configs:
default:
cmd:
- python
args:
- build/android/test_runner.py
- gtest
- -s
- content_browsertests
- --verbose
- --${build_type}
- --num_retries=1
unit_tests_apk:
targets:
- ${self}
- forwarder2
configs:
default:
cmd:
- python
args:
- build/android/test_runner.py
- gtest
- -s
- unit_tests
- --verbose
- --${build_type}
- --num_retries=1
content_shell_apk:
targets:
- ${self}
- forwarder2
configs:
default:
cmd: python
args:
- build/android/adb_install_apk.py
- --apk
- ${Build_dir}/apks/ContentShell.apk
content_shell_test_apk:
targets:
- ${self}
- forwarder2
configs:
default:
cmd: ${Build_dir}/bin/run_content_shell_test_apk
chrome_public_apk:
targets:
- ${self}
- forwarder2
configs:
default:
cmd: ${Build_dir}/bin/chrome_public_apk
args:
- install
- -d
- ${android_device}
env_chromium_unittests_apk:
targets:
- ${self}
- forwarder2
configs:
default:
cmd: python
args:
- build/android/test_runner.py
- gtest
- -s
- env_chromium_unittests
- --verbose
- --${build_type}
- --num_retries=1
ui_tests_:
executable_names:
- content_browsertests
- browser_tests
- interactive_ui_tests
type: gtest
configs:
default:
cmd:
- ${xvfb}
- ${Build_dir}/${executable_name}
args:
- --test-launcher-jobs=${testjobs
debug:
cmd:
- ${debugger}
args:
- -- args
- ${Build_dir}/${executable_name}
valgrind:
cmd:
- tools/valgrind/chrome_tests.sh
args:
- --build-dir=${Build_dir}
- -t
- ${executable_name}
unit_tests_:
executable_names:
- base_unittests
- blink_heap_unittests
- blink_platform_unittests
- cc_unittests
- chromeos_services_unittests
- components_unittests
- content_unittests
- crypto_unittests
- env_chromium_unittests
- extensions_unittests
- google_apis_unittests
- headless_browsertests
- leveldb_service_unittests
- net_unittests
- performance_browser_tests
- services_unittests
- sql_unittests
- storage_unittests
- unit_tests
- url_unittests
- webkit_unit_tests
type: gtest
targets:
- xdisplaycheck:
condition: OS==linux
- ${self}
configs:
default:
cmd:
- ${Build_dir}/${executable_name}
args:
- --brave-new-test-launcher
- --test-launcher-jobs=${testjobs}
asan:
cmd:
- ${Build_dir}/${executable_name}
args:
- --test-launcher-batch-limit=1
- --test-launcher-jobs=${testjobs}
- --test-launcher-print-test-stdio=always
- --no-sandbox
debug:
cmd:
- ${debugger}
args:
- --args
- ${Build_dir}/${executable_name}
- --single-process-tests
valgrind:
cmd: tools/valgrind/chrome_tests.sh
args:
- --build-dir=${Build_dir}
- -t
- ${executable_name}
clusterfuzz:
title: Runs an ASAN-ified build
targets:
- chrome
- ipc_fuzzer_replay
configs:
asan:
cmd: tools/ipc_fuzzer/play_testcase.py
args:
- --build-type=${Build_type}
- --out-dir=${out_dir}
- /usr/local/google/home/cmumford/work/ssd/chrome/src/fuzz-force-closed-minimized.ipcdump
blink-layout:
title: The Blink layout tests
targets: blink_tests
configs:
default:
cmd: third_party/blink/tools/run_web_tests.py
args:
- --no-show-results
- --nocheck-sys-deps
- --target=${Build_name}
- --clobber-old-results
- --no-retry-failures
- --child-processes=${jobs}
- ${run_args}
debug:
cmd: ${debugger}
args:
- --args
- ${Build_dir}/content_shell
- --no-timeout
- --no-sandbox
- --single-process
asan:
cmd: ${Build_dir}/content_shell
args:
- --no-timeout
- --no-sandbox
valgrind:
cmd: tools/valgrind/chrome_tests.sh
args:
- --build-dir=${Build_dir}
- -t
- webkit
webview_instrumentation_apk:
configs:
default:
cmd: ${Build_dir}/bin/webview_instrumentation_apk
args:
- install
- -d
- ${android_device}
- ${run_args}
webview_instrumentation_test_apk:
configs:
default:
cmd: ${Build_dir}/bin/run_webview_instrumentation_test_apk
args: ${run_args}
webview_unittests:
targets: android_webview_unittests
configs:
default:
cmd: ${Build_dir}/bin/run_android_webview_unittests
system_webview_shell_apk:
configs:
default:
- cmd: ${Build_dir}/bin/system_webview_shell_apk
args:
- install
- -d
- ${android_device}
system_webview_shell_layout_test_apk:
configs:
default:
cmd: ${Build_dir}/bin/run_system_webview_shell_layout_test_apk
args:
- -d
- ${android_device}
- ${run_args}
system_webview_apk:
configs:
default:
- cmd: ${Build_dir}/bin/system_webview_apk
args:
- install
- -d
- ${android_device}
- cmd: ${Build_dir}/bin/system_webview_apk
args:
- set-webview-provider
- -d
- ${android_device}
system_webview_google_apk:
configs:
default:
- cmd: ${Build_dir}/bin/system_webview_google_apk
args:
- install
- -d
- ${android_device}
- cmd: ${Build_dir}/bin/system_webview_google_apk
args:
- set-webview-provider
- -d
- ${android_device}
system_webview_uninstall:
title: Uninstall the system WebView package.
targets:
- system_webview_apk:
build_only
configs:
default:
cmd: ${Build_dir}/bin/system_webview_apk
args:
- uninstall
- -d
- ${android_device}
monochrome_public_apk:
configs:
default:
- cmd: ${Build_dir}/bin/monochrome_public_apk
args:
- install
- -d
- ${android_device}
- cmd: ${Build_dir}/bin/monochrome_public_apk
args:
- set-webview-provider
- -d
- ${android_device}
monochrome_apk:
configs:
default:
- cmd: ${Build_dir}/bin/monochrome_apk
args:
- install
- -d
- ${android_device}
- cmd: ${Build_dir}/bin/monochrome_apk
args:
- set-webview-provider
- -d
- ${android_device}
- cmd: adb
args:
- -s
- ${android_device}
- shell
- dumpsys
- webviewupdate
webkit_unit_tests-idb:
title: The IndexedDB tests from webkit_unit_tests
targets: webkit_unit_tests
args: '--gtest_filter=:*IDB*:'
webview-tests-all:
title: Build and run *all* WebView tests
targets:
- webview_instrumentation_test_apk
- webview_unittests
- system_webview_shell_layout_test_apk
list-packages:
title: List installed packages on Android device.
options: run_only
configs:
default:
shell_cmd: adb -s ${android_device} shell 'pm list packages -f' | sed -e 's/.*=//' | sort
webview-info:
title: List WebView package information.
options: run_only
configs:
default:
cmd: adb
args:
- -s
- ${android_device}
- shell
- dumpsys
- webviewupdate
# https://chromium.googlesource.com/chromium/src/+/master/docs/android_studio.md
# This doesn't work yet.
generate-studio-project:
options: run_only
configs:
default:
cmd: build/android/gradle/generate_gradle.py
args:
- --output-directory
- ${Build_dir}
- --target
- //chrome/android:chrome_public_apk
- --target
- //android_webview/test:webview_instrumentation_apk
tests-all:
title: Run *all* tests
targets:
- base_unittests
- blink_platform_unittests
- browser_tests
- cc_unittests
- components_unittests
- content_browsertests
- content_unittests
- crypto_unittests
- env_chromium_unittests
- extensions_unittests
- interactive_ui_tests
- leveldb_service_unittests
- net_unittests
- services_unittests
- storage_unittests
- unit_tests
- url_unittests