| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 | 6 |
| 7 from recipe_engine import recipe_api | 7 from recipe_engine import recipe_api |
| 8 from recipe_engine import util as recipe_util | 8 from recipe_engine import util as recipe_util |
| 9 | 9 |
| 10 class TestLauncherFilterFileInputPlaceholder(recipe_util.InputPlaceholder): | 10 class TestLauncherFilterFileInputPlaceholder(recipe_util.InputPlaceholder): |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 | 439 |
| 440 if (self.c.gyp_env.GYP_DEFINES.get('asan', 0) == 1 or | 440 if (self.c.gyp_env.GYP_DEFINES.get('asan', 0) == 1 or |
| 441 self.c.runtests.run_asan_test): | 441 self.c.runtests.run_asan_test): |
| 442 full_args.append('--enable-asan') | 442 full_args.append('--enable-asan') |
| 443 if self.c.runtests.enable_lsan: | 443 if self.c.runtests.enable_lsan: |
| 444 full_args.append('--enable-lsan') | 444 full_args.append('--enable-lsan') |
| 445 if self.c.gyp_env.GYP_DEFINES.get('msan', 0) == 1: | 445 if self.c.gyp_env.GYP_DEFINES.get('msan', 0) == 1: |
| 446 full_args.append('--enable-msan') | 446 full_args.append('--enable-msan') |
| 447 if self.c.gyp_env.GYP_DEFINES.get('tsan', 0) == 1: | 447 if self.c.gyp_env.GYP_DEFINES.get('tsan', 0) == 1: |
| 448 full_args.append('--enable-tsan') | 448 full_args.append('--enable-tsan') |
| 449 if self.c.runtests.memory_tool: | 449 if self.c.runtests.enable_memcheck: |
| 450 full_args.extend([ | 450 full_args.extend([ |
| 451 '--pass-build-dir', | 451 '--pass-build-dir', |
| 452 '--pass-target', | 452 '--pass-target', |
| 453 '--run-shell-script', | 453 '--run-shell-script', |
| 454 self.c.runtests.memory_tests_runner, | 454 self.c.runtests.memory_tests_runner, |
| 455 '--test', t_name, | 455 '--test', t_name, |
| 456 '--tool', self.c.runtests.memory_tool, | 456 '--tool', 'memcheck', |
| 457 ]) | 457 ]) |
| 458 else: | 458 else: |
| 459 full_args.append(test) | 459 full_args.append(test) |
| 460 | 460 |
| 461 full_args.extend(self.c.runtests.test_args) | 461 full_args.extend(self.c.runtests.test_args) |
| 462 full_args.extend(args) | 462 full_args.extend(args) |
| 463 | 463 |
| 464 runtest_path = self.package_repo_resource('scripts', 'slave', 'runtest.py') | 464 runtest_path = self.package_repo_resource('scripts', 'slave', 'runtest.py') |
| 465 if self.c.runtest_py.src_side and not disable_src_side_runtest_py: | 465 if self.c.runtest_py.src_side and not disable_src_side_runtest_py: |
| 466 runtest_path = self.m.path['checkout'].join( | 466 runtest_path = self.m.path['checkout'].join( |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 })) | 901 })) |
| 902 | 902 |
| 903 def get_annotate_by_test_name(self, test_name): | 903 def get_annotate_by_test_name(self, test_name): |
| 904 return 'graphing' | 904 return 'graphing' |
| 905 | 905 |
| 906 def download_lto_plugin(self): | 906 def download_lto_plugin(self): |
| 907 return self.m.python( | 907 return self.m.python( |
| 908 name='download LTO plugin', | 908 name='download LTO plugin', |
| 909 script=self.m.path['checkout'].join( | 909 script=self.m.path['checkout'].join( |
| 910 'build', 'download_gold_plugin.py')) | 910 'build', 'download_gold_plugin.py')) |
| OLD | NEW |