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

Side by Side Diff: scripts/master/factory/chromium_commands.py

Issue 9601021: Add testing library to running tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: Rebase and add a TODO for the item under discussion Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | scripts/master/factory/chromium_factory.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 """Set of utilities to add commands to a buildbot factory. 5 """Set of utilities to add commands to a buildbot factory.
6 6
7 This is based on commands.py and adds chromium-specific commands.""" 7 This is based on commands.py and adds chromium-specific commands."""
8 8
9 import logging 9 import logging
10 import os 10 import os
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 # use the latest build. Instead we should trigger on the 931 # use the latest build. Instead we should trigger on the
932 # presence of new build and pass that info down for a 932 # presence of new build and pass that info down for a
933 # --build N arg. 933 # --build N arg.
934 '--latest'] 934 '--latest']
935 if branch: # Fetch latest on given branch 935 if branch: # Fetch latest on given branch
936 cmd += ['--branch', str(branch)] 936 cmd += ['--branch', str(branch)]
937 self.AddTestStep(commands.WaterfallLoggingShellCommand, 937 self.AddTestStep(commands.WaterfallLoggingShellCommand,
938 'Download and extract official build', cmd, 938 'Download and extract official build', cmd,
939 halt_on_failure=True) 939 halt_on_failure=True)
940 940
941 def AddSoftGpuTests(self, factory_properties):
942 """Runs gpu_tests with software rendering and archives any results.
943 """
944 tests = ':'.join(['GpuPixelBrowserTest.*', 'GpuFeatureTest.*',
945 'Canvas2DPixelTestSD.*', 'Canvas2DPixelTestHD.*'])
946 # 'GPUCrashTest.*', while interesting, fails.
947
948 # TODO(petermayo): Invoke the new executable when it is ready.
949 self.AddBasicGTestTestStep('gpu_tests', factory_properties,
950 description='(soft)',
951 arg_list=['--gtest_also_run_disabled_tests',
952 '--gtest_filter=%s' % tests],
953 test_tool_arg_list=['--llvmpipe'])
954
955 # Note: we aren't archiving these for the moment.
956
941 def AddGpuTests(self, factory_properties): 957 def AddGpuTests(self, factory_properties):
942 """Runs gpu_tests binary and archives any results. 958 """Runs gpu_tests binary and archives any results.
943 959
944 This binary contains all the tests that should be run on the gpu bots. 960 This binary contains all the tests that should be run on the gpu bots.
945 """ 961 """
946 # Put gpu data in /b/build/slave/SLAVE_NAME/gpu_data 962 # Put gpu data in /b/build/slave/SLAVE_NAME/gpu_data
947 gpu_data = self.PathJoin('..', 'gpu_data') 963 gpu_data = self.PathJoin('..', 'gpu_data')
948 gen_dir = self.PathJoin(gpu_data, 'generated') 964 gen_dir = self.PathJoin(gpu_data, 'generated')
949 ref_dir = self.PathJoin(gpu_data, 'reference') 965 ref_dir = self.PathJoin(gpu_data, 'reference')
950 966
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 # ArchiveCommand.createSummary. 1040 # ArchiveCommand.createSummary.
1025 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) 1041 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name)
1026 1042
1027 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): 1043 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'):
1028 if not factory_properties or 'gs_bucket' not in factory_properties: 1044 if not factory_properties or 'gs_bucket' not in factory_properties:
1029 return (_GetArchiveUrl('snapshots', builder_name), None) 1045 return (_GetArchiveUrl('snapshots', builder_name), None)
1030 gs_bucket = factory_properties['gs_bucket'] 1046 gs_bucket = factory_properties['gs_bucket']
1031 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', 1047 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/',
1032 gs_bucket) 1048 gs_bucket)
1033 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') 1049 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/')
OLDNEW
« no previous file with comments | « no previous file | scripts/master/factory/chromium_factory.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698