OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 """ Utilities for generic build steps. """ | 5 """ Utilities for generic build steps. """ |
6 | 6 |
7 import os | 7 import os |
8 import shutil | 8 import shutil |
9 import sys | 9 import sys |
10 | 10 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 For example, the AndroidBuildStepUtils will override the functions for copying | 88 For example, the AndroidBuildStepUtils will override the functions for copying |
89 files between the host and Android device, as well as the RunFlavoredCmd | 89 files between the host and Android device, as well as the RunFlavoredCmd |
90 function, so that commands may be run through ADB. """ | 90 function, so that commands may be run through ADB. """ |
91 | 91 |
92 def __init__(self, build_step_instance): | 92 def __init__(self, build_step_instance): |
93 self._step = build_step_instance | 93 self._step = build_step_instance |
94 | 94 |
95 def ListBuildStepExecutables(self): | 95 def ListBuildStepExecutables(self): |
96 """ Called by subclasses that may need to install the executables. """ | 96 """ Called by subclasses that may need to install the executables. """ |
97 return ['tests', 'gm', 'render_pictures', 'render_pdfs', | 97 return ['dm', 'tests', 'gm', 'render_pictures', 'render_pdfs', |
98 'bench', 'bench_pictures', 'skimage', 'nanobench'] | 98 'bench', 'bench_pictures', 'skimage', 'nanobench'] |
99 | 99 |
100 def _PathToBinary(self, binary): | 100 def _PathToBinary(self, binary): |
101 """ Returns the path to the given built executable. """ | 101 """ Returns the path to the given built executable. """ |
102 return os.path.join('out', self._step.configuration, binary) | 102 return os.path.join('out', self._step.configuration, binary) |
103 | 103 |
104 def RunFlavoredCmd(self, app, args): | 104 def RunFlavoredCmd(self, app, args): |
105 """ Override this in new BuildStepUtils flavors. """ | 105 """ Override this in new BuildStepUtils flavors. """ |
106 if (sys.platform == 'linux2' and 'x86_64' in self._step.builder_name | 106 if (sys.platform == 'linux2' and 'x86_64' in self._step.builder_name |
107 and not 'TSAN' in self._step.builder_name): | 107 and not 'TSAN' in self._step.builder_name): |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 skimage_expected_dir=os.path.join(os.pardir, os.pardir, 'skimage', | 245 skimage_expected_dir=os.path.join(os.pardir, os.pardir, 'skimage', |
246 'expected'), | 246 'expected'), |
247 skimage_out_dir=self._step.skimage_out_dir, | 247 skimage_out_dir=self._step.skimage_out_dir, |
248 skp_dir=self._step.skp_dir, | 248 skp_dir=self._step.skp_dir, |
249 skp_perf_dir=self._step.perf_data_dir, | 249 skp_perf_dir=self._step.perf_data_dir, |
250 playback_actual_images_dir=self._step.playback_actual_images_dir, | 250 playback_actual_images_dir=self._step.playback_actual_images_dir, |
251 playback_actual_summaries_dir=self._step.playback_actual_summaries_dir, | 251 playback_actual_summaries_dir=self._step.playback_actual_summaries_dir, |
252 playback_expected_summaries_dir=( | 252 playback_expected_summaries_dir=( |
253 self._step.playback_expected_summaries_dir), | 253 self._step.playback_expected_summaries_dir), |
254 tmp_dir=os.path.join(os.pardir, 'tmp')) | 254 tmp_dir=os.path.join(os.pardir, 'tmp')) |
OLD | NEW |