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

Side by Side Diff: scripts/slave/recipe_modules/chromium/steps.py

Issue 518663003: Add mojo python bindings tests to the waterfalls. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Follow review Created 6 years, 3 months 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 5
6 class Test(object): 6 class Test(object):
7 """ 7 """
8 Base class for tests that can be retried after deapplying a previously 8 Base class for tests that can be retried after deapplying a previously
9 applied patch. 9 applied patch.
10 """ 10 """
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 name = 'mojo_python_tests' 518 name = 'mojo_python_tests'
519 519
520 def run_step(self, api, suffix, cmd_args, **kwargs): 520 def run_step(self, api, suffix, cmd_args, **kwargs):
521 return api.python(self._step_name(suffix), 521 return api.python(self._step_name(suffix),
522 api.path['checkout'].join('mojo', 'tools', 522 api.path['checkout'].join('mojo', 'tools',
523 'run_mojo_python_tests.py'), 523 'run_mojo_python_tests.py'),
524 cmd_args, 524 cmd_args,
525 **kwargs) 525 **kwargs)
526 526
527 527
528 class MojoPythonBindingsTests(PythonBasedTest): # pylint: disable=W0232
529 name = 'mojo_python_bindings_tests'
530
531 def run_step(self, api, suffix, cmd_args, **kwargs):
532 component = api.chromium.c.gyp_env.GYP_DEFINES.get('component', None)
533 # Python modules are not build for the component build.
534 if component == 'shared_library':
535 return None
536 args = cmd_args
537 args.extend(['--build-dir', api.chromium.c.build_dir])
538 return api.python(
539 self._step_name(suffix),
540 api.path['checkout'].join('mojo', 'tools',
541 'run_mojo_python_bindings_tests.py'),
542 args,
543 **kwargs)
544
545
528 class PrintPreviewTests(PythonBasedTest): # pylint: disable=W032 546 class PrintPreviewTests(PythonBasedTest): # pylint: disable=W032
529 name = 'print_preview_tests' 547 name = 'print_preview_tests'
530 548
531 def run_step(self, api, suffix, cmd_args, **kwargs): 549 def run_step(self, api, suffix, cmd_args, **kwargs):
532 platform_arg = '.'.join(['browser_test', 550 platform_arg = '.'.join(['browser_test',
533 api.platform.normalize_platform_name(api.platform.name)]) 551 api.platform.normalize_platform_name(api.platform.name)])
534 args = list(cmd_args) 552 args = cmd_args
535 path = api.path['checkout'].join( 553 path = api.path['checkout'].join(
536 'webkit', 'tools', 'layout_tests', 'run_webkit_tests.py') 554 'webkit', 'tools', 'layout_tests', 'run_webkit_tests.py')
537 args.extend(['--platform', platform_arg]) 555 args.extend(['--platform', platform_arg])
538 556
539 # This is similar to how api.chromium.run_telemetry_test() sets the 557 # This is similar to how api.chromium.run_telemetry_test() sets the
540 # environment variable for the sandbox. 558 # environment variable for the sandbox.
541 env = {} 559 env = {}
542 if api.platform.is_linux: 560 if api.platform.is_linux:
543 env['CHROME_DEVEL_SANDBOX'] = api.path.join( 561 env['CHROME_DEVEL_SANDBOX'] = api.path.join(
544 '/opt', 'chromium', 'chrome_sandbox') 562 '/opt', 'chromium', 'chrome_sandbox')
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 GTestTest('crypto_unittests'), 783 GTestTest('crypto_unittests'),
766 GTestTest('gfx_unittests'), 784 GTestTest('gfx_unittests'),
767 GTestTest('url_unittests'), 785 GTestTest('url_unittests'),
768 GTestTest('content_unittests'), 786 GTestTest('content_unittests'),
769 GTestTest('net_unittests'), 787 GTestTest('net_unittests'),
770 GTestTest('ui_unittests'), 788 GTestTest('ui_unittests'),
771 GTestTest('ui_ios_unittests'), 789 GTestTest('ui_ios_unittests'),
772 GTestTest('sync_unit_tests'), 790 GTestTest('sync_unit_tests'),
773 GTestTest('sql_unittests'), 791 GTestTest('sql_unittests'),
774 ] 792 ]
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/chromium/chromium_linux.py ('k') | scripts/slave/recipes/chromium.expected/buildnumber_zero.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698