Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: scripts/slave/recipes/pdfium.py

Issue 2451553003: Remove drmemory bots from master.client.pdfium (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 DEPS = [ 5 DEPS = [
6 'depot_tools/gclient', 6 'depot_tools/gclient',
7 'depot_tools/bot_update', 7 'depot_tools/bot_update',
8 'goma', 8 'goma',
9 'recipe_engine/path', 9 'recipe_engine/path',
10 'recipe_engine/platform', 10 'recipe_engine/platform',
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 if target_os: 82 if target_os:
83 args.append('target_os="%s"' % target_os) 83 args.append('target_os="%s"' % target_os)
84 if target_cpu == 'x86': 84 if target_cpu == 'x86':
85 args.append('target_cpu="x86"') 85 args.append('target_cpu="x86"')
86 86
87 api.python('gn gen', gn_cmd, 87 api.python('gn gen', gn_cmd,
88 ['--root=' + str(checkout), 'gen', '//out/' + out_dir, 88 ['--root=' + str(checkout), 'gen', '//out/' + out_dir,
89 '--args=' + ' '.join(args)], 89 '--args=' + ' '.join(args)],
90 cwd=checkout) 90 cwd=checkout)
91 91
92
92 def _BuildSteps(api, clang, out_dir): 93 def _BuildSteps(api, clang, out_dir):
93 # Build sample file using Ninja 94 # Build sample file using Ninja
94 debug_path = api.path['checkout'].join('out', out_dir) 95 debug_path = api.path['checkout'].join('out', out_dir)
95 ninja_cmd = ['ninja', '-C', debug_path, 96 ninja_cmd = ['ninja', '-C', debug_path,
96 '-j', api.goma.recommended_goma_jobs] 97 '-j', api.goma.recommended_goma_jobs]
97 98
98 with api.goma.build_with_goma( 99 with api.goma.build_with_goma(
99 ninja_log_outdir=debug_path, 100 ninja_log_outdir=debug_path,
100 ninja_log_compiler='clang' if clang else 'unknown', 101 ninja_log_compiler='clang' if clang else 'unknown',
101 ninja_log_command=ninja_cmd): 102 ninja_log_command=ninja_cmd):
102 api.step('compile with ninja', ninja_cmd) 103 api.step('compile with ninja', ninja_cmd)
103 104
104 105
105 def _RunDrMemoryTests(api, v8):
106 pdfium_tests_py = str(api.path['checkout'].join('tools',
107 'drmemory',
108 'scripts',
109 'pdfium_tests.py'))
110 api.python('unittests', pdfium_tests_py,
111 args=['--test', 'pdfium_unittests'],
112 cwd=api.path['checkout'])
113 api.python('embeddertests', pdfium_tests_py,
114 args=['--test', 'pdfium_embeddertests'],
115 cwd=api.path['checkout'])
116 if v8:
117 api.python('javascript tests', pdfium_tests_py,
118 args=['--test', 'pdfium_javascript'],
119 cwd=api.path['checkout'])
120 api.python('pixel tests', pdfium_tests_py,
121 args=['--test', 'pdfium_pixel'],
122 cwd=api.path['checkout'])
123 api.python('corpus tests', pdfium_tests_py,
124 args=['--test', 'pdfium_corpus'],
125 cwd=api.path['checkout'])
126
127
128 def _RunTests(api, memory_tool, v8, out_dir): 106 def _RunTests(api, memory_tool, v8, out_dir):
129 if memory_tool == 'drmemory':
130 _RunDrMemoryTests(api, v8)
131 return
132
133 env = {} 107 env = {}
134 if memory_tool == 'asan': 108 if memory_tool == 'asan':
135 options = ['detect_leaks=1', 109 options = ['detect_leaks=1',
136 'allocator_may_return_null=1', 110 'allocator_may_return_null=1',
137 'symbolize=1', 111 'symbolize=1',
138 'external_symbolizer_path=' 112 'external_symbolizer_path='
139 'third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer'] 113 'third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer']
140 env.update({'ASAN_OPTIONS': ' '.join(options)}) 114 env.update({'ASAN_OPTIONS': ' '.join(options)})
141 115
142 unittests_path = str(api.path['checkout'].join('out', out_dir, 116 unittests_path = str(api.path['checkout'].join('out', out_dir,
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 yield ( 336 yield (
363 api.test('linux_asan_lsan') + 337 api.test('linux_asan_lsan') +
364 api.platform('linux', 64) + 338 api.platform('linux', 64) +
365 api.properties(memory_tool='asan', 339 api.properties(memory_tool='asan',
366 mastername="client.pdfium", 340 mastername="client.pdfium",
367 buildername='linux_asan_lsan', 341 buildername='linux_asan_lsan',
368 slavename="test_slave") 342 slavename="test_slave")
369 ) 343 )
370 344
371 yield ( 345 yield (
372 api.test('drm_win_xfa') +
373 api.platform('win', 64) +
374 api.properties(xfa=True,
375 memory_tool='drmemory',
376 target_cpu='x86',
377 mastername="client.pdfium",
378 buildername='drm_win_xfa',
379 slavename="test_slave")
380 )
381
382 yield (
383 api.test('linux_xfa_asan_lsan') + 346 api.test('linux_xfa_asan_lsan') +
384 api.platform('linux', 64) + 347 api.platform('linux', 64) +
385 api.properties(xfa=True, 348 api.properties(xfa=True,
386 memory_tool='asan', 349 memory_tool='asan',
387 mastername="client.pdfium", 350 mastername="client.pdfium",
388 buildername='linux_xfa_asan_lsan', 351 buildername='linux_xfa_asan_lsan',
389 slavename="test_slave") 352 slavename="test_slave")
390 ) 353 )
391 354
392 yield ( 355 yield (
393 api.test('try-linux_xfa_asan_lsan') + 356 api.test('try-linux_xfa_asan_lsan') +
394 api.platform('linux', 64) + 357 api.platform('linux', 64) +
395 api.properties.tryserver(xfa=True, 358 api.properties.tryserver(xfa=True,
396 memory_tool='asan', 359 memory_tool='asan',
397 mastername='tryserver.client.pdfium', 360 mastername='tryserver.client.pdfium',
398 buildername='linux_xfa_asan_lsan') 361 buildername='linux_xfa_asan_lsan')
399 ) 362 )
400 363
401 yield ( 364 yield (
402 api.test('android') + 365 api.test('android') +
403 api.platform('linux', 64) + 366 api.platform('linux', 64) +
404 api.properties(mastername='client.pdfium', 367 api.properties(mastername='client.pdfium',
405 buildername='android', 368 buildername='android',
406 slavename='test_slave', 369 slavename='test_slave',
407 target_os='android', 370 target_os='android',
408 skip_test=True) 371 skip_test=True)
409 ) 372 )
OLDNEW
« no previous file with comments | « masters/master.client.pdfium/builders.pyl ('k') | scripts/slave/recipes/pdfium.expected/drm_win_xfa.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698