OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 """Utility class to build the Skia master BuildFactory's for HouseKeeping bots. | 5 """Utility class to build the Skia master BuildFactory's for HouseKeeping bots. |
6 | 6 |
7 Overrides SkiaFactory with Per-commit HouseKeeping steps.""" | 7 Overrides SkiaFactory with Per-commit HouseKeeping steps.""" |
8 | 8 |
9 import os | 9 import os |
10 import tempfile | 10 import tempfile |
(...skipping 13 matching lines...) Expand all Loading... | |
24 **kwargs) | 24 **kwargs) |
25 | 25 |
26 def Build(self, clobber=None): | 26 def Build(self, clobber=None): |
27 """Build and return the complete BuildFactory. | 27 """Build and return the complete BuildFactory. |
28 | 28 |
29 clobber: boolean indicating whether we should clean before building | 29 clobber: boolean indicating whether we should clean before building |
30 """ | 30 """ |
31 self.UpdateSteps() | 31 self.UpdateSteps() |
32 self.Compile(clobber) | 32 self.Compile(clobber) |
33 | 33 |
34 # TODO (borenet): Move these to a self-tests bot. | |
epoger
2014/02/07 14:49:40
Please add a link to the bug, http://skbug.com/214
| |
34 # Build tools and run their unittests. | 35 # Build tools and run their unittests. |
35 self._skia_cmd_obj.AddRunCommand( | 36 self._skia_cmd_obj.AddRunCommand( |
36 command=self.TargetPath.join('tools', 'tests', 'run.sh'), | 37 command=self.TargetPath.join('tools', 'tests', 'run.sh'), |
37 description='RunToolSelfTests') | 38 description='RunToolSelfTests') |
38 | 39 |
39 # Build GM and run its unittests. | 40 # Build GM and run its unittests. |
40 self._skia_cmd_obj.AddRunCommand( | 41 self._skia_cmd_obj.AddRunCommand( |
41 command=self.TargetPath.join('gm', 'tests', 'run.sh'), | 42 command=self.TargetPath.join('gm', 'tests', 'run.sh'), |
42 description='RunGmSelfTests') | 43 description='RunGmSelfTests') |
43 | 44 |
45 # Run unittests for Anroid platform_tools | |
46 self._skia_cmd_obj.AddRunCommand( | |
47 command=['python', self.TargetPath.join('platform_tools', 'android', | |
48 'tests', 'run_all.py')], | |
49 description='RunAndroidPlatformSelfTests') | |
50 | |
44 # Check for static initializers. | 51 # Check for static initializers. |
45 self.AddSlaveScript(script='detect_static_initializers.py', | 52 self.AddSlaveScript(script='detect_static_initializers.py', |
46 description='DetectStaticInitializers') | 53 description='DetectStaticInitializers') |
47 | 54 |
48 if not self._do_patch_step: # Do not run Pydoc & Doxygen steps if try job. | 55 if not self._do_patch_step: # Do not run Pydoc & Doxygen steps if try job. |
49 # Generate and upload Buildbot Pydoc documentation. | 56 # Generate and upload Buildbot Pydoc documentation. |
50 buildbot_pydoc_actual_svn_baseurl = '%s/%s' % (AUTOGEN_SVN_BASEURL, | 57 buildbot_pydoc_actual_svn_baseurl = '%s/%s' % (AUTOGEN_SVN_BASEURL, |
51 'buildbot-docs') | 58 'buildbot-docs') |
52 # pylint: disable=W0212 | 59 # pylint: disable=W0212 |
53 update_buildbot_pydoc_path = self.TargetPath.join( | 60 update_buildbot_pydoc_path = self.TargetPath.join( |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 | 115 |
109 self._skia_cmd_obj.AddRunCommand( | 116 self._skia_cmd_obj.AddRunCommand( |
110 command='python run_unittests', description='BuildbotSelfTests', | 117 command='python run_unittests', description='BuildbotSelfTests', |
111 workdir=self.TargetPath.join(os.pardir, os.pardir, os.pardir, | 118 workdir=self.TargetPath.join(os.pardir, os.pardir, os.pardir, |
112 os.pardir)) | 119 os.pardir)) |
113 | 120 |
114 self.AddSlaveScript(script='check_compile_times.py', | 121 self.AddSlaveScript(script='check_compile_times.py', |
115 description='CheckCompileTimes') | 122 description='CheckCompileTimes') |
116 self.Validate() | 123 self.Validate() |
117 return self | 124 return self |
OLD | NEW |