OLD | NEW |
---|---|
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import re | 5 import re |
6 from recipe_engine.types import freeze | 6 from recipe_engine.types import freeze |
7 | 7 |
8 | 8 |
9 TEST_CONFIGS = freeze({ | 9 TEST_CONFIGS = freeze({ |
10 'benchmarks': { | 10 'benchmarks': { |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
444 'Deopt Fuzz', | 444 'Deopt Fuzz', |
445 self.api.path['checkout'].join('tools', 'run-deopt-fuzzer.py'), | 445 self.api.path['checkout'].join('tools', 'run-deopt-fuzzer.py'), |
446 full_args, | 446 full_args, |
447 cwd=self.api.path['checkout'], | 447 cwd=self.api.path['checkout'], |
448 ) | 448 ) |
449 return TestResults.empty() | 449 return TestResults.empty() |
450 | 450 |
451 | 451 |
452 class V8GCMole(BaseTest): | 452 class V8GCMole(BaseTest): |
453 def run(self, **kwargs): | 453 def run(self, **kwargs): |
454 # TODO(machenbach): Make gcmole work with absolute paths. Currently, a | |
kjellander_chromium
2016/02/17 08:48:54
Whoa, nice cleanup. 5 levels of parent directory p
| |
455 # particular clang version is installed on one slave in '/b'. | |
456 env = { | |
457 'CLANG_BIN': ( | |
458 self.api.path.join('..', '..', '..', '..', '..', 'gcmole', 'bin') | |
459 ), | |
460 'CLANG_PLUGINS': ( | |
461 self.api.path.join('..', '..', '..', '..', '..', 'gcmole') | |
462 ), | |
463 } | |
464 for arch in ['ia32', 'x64', 'arm', 'arm64']: | 454 for arch in ['ia32', 'x64', 'arm', 'arm64']: |
465 self.api.step( | 455 self.api.python( |
466 'GCMole %s' % arch, | 456 'GCMole %s' % arch, |
467 ['lua', self.api.path.join('tools', 'gcmole', 'gcmole.lua'), arch], | 457 self.api.path['checkout'].join('tools', 'gcmole', 'run-gcmole.py'), |
468 cwd=self.api.path['checkout'], | 458 [arch], |
469 env=env, | |
470 ) | 459 ) |
471 return TestResults.empty() | 460 return TestResults.empty() |
472 | 461 |
473 | 462 |
474 class V8SimpleLeakCheck(V8GenericSwarmingTest): | 463 class V8SimpleLeakCheck(V8GenericSwarmingTest): |
475 @property | 464 @property |
476 def title(self): | 465 def title(self): |
477 return 'Simple Leak Check' | 466 return 'Simple Leak Check' |
478 | 467 |
479 @property | 468 @property |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
542 # TODO(machenbach): Implement swarming for non-standard tests. | 531 # TODO(machenbach): Implement swarming for non-standard tests. |
543 if v8_api.bot_config.get('enable_swarming') and test_step_config.swarming: | 532 if v8_api.bot_config.get('enable_swarming') and test_step_config.swarming: |
544 tools_mapping = TOOL_TO_TEST_SWARMING | 533 tools_mapping = TOOL_TO_TEST_SWARMING |
545 else: | 534 else: |
546 tools_mapping = TOOL_TO_TEST | 535 tools_mapping = TOOL_TO_TEST |
547 | 536 |
548 # The tool the test is going to use. Default: V8 test runner (run-tests). | 537 # The tool the test is going to use. Default: V8 test runner (run-tests). |
549 tool = TEST_CONFIGS[test_step_config.name].get('tool', 'run-tests') | 538 tool = TEST_CONFIGS[test_step_config.name].get('tool', 'run-tests') |
550 test_cls = tools_mapping[tool] | 539 test_cls = tools_mapping[tool] |
551 return test_cls(test_step_config, api, v8_api) | 540 return test_cls(test_step_config, api, v8_api) |
OLD | NEW |