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

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: 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') | scripts/slave/runtest.py » ('J')
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 # Put gpu data in /b/build/slave/SLAVE_NAME/gpu_data
M-A Ruel 2012/03/07 20:29:44 Do you want to keep this comment?
Peter Mayo 2012/03/08 21:17:35 These were a hook to the key open question of wher
945 # gen_dir = self.PathJoin('..', 'soft_gpu_data', 'generated')
946 # ref_dir = self.PathJoin('..', 'gpu_data', 'reference')
947
948 tests = ':'.join(['GpuPixelBrowserTest.*', 'GpuFeatureTest.*',
949 'Canvas2DPixelTestSD.*', 'Canvas2DPixelTestHD.*'])
950 # 'GPUCrashTest.*', while interesting, fails.
951
952 self.AddBasicGTestTestStep('gpu_tests', factory_properties,
953 description='(soft)',
954 arg_list=['--gtest_also_run_disabled_tests',
955 # '--generated-dir=%s' % gen_dir,
M-A Ruel 2012/03/07 20:29:44 same
Peter Mayo 2012/03/08 21:17:35 Done.
956 # '--reference-dir=%s' % ref_dir,
957 '--gtest_filter=%s' % tests],
958 test_tool_arg_list=['--llvmpipe'])
959
960 # Note: we aren't archiving these for the moment.
961
941 def AddGpuTests(self, factory_properties): 962 def AddGpuTests(self, factory_properties):
942 """Runs gpu_tests binary and archives any results. 963 """Runs gpu_tests binary and archives any results.
943 964
944 This binary contains all the tests that should be run on the gpu bots. 965 This binary contains all the tests that should be run on the gpu bots.
945 """ 966 """
946 # Put gpu data in /b/build/slave/SLAVE_NAME/gpu_data 967 # Put gpu data in /b/build/slave/SLAVE_NAME/gpu_data
947 gpu_data = self.PathJoin('..', 'gpu_data') 968 gpu_data = self.PathJoin('..', 'gpu_data')
948 gen_dir = self.PathJoin(gpu_data, 'generated') 969 gen_dir = self.PathJoin(gpu_data, 'generated')
949 ref_dir = self.PathJoin(gpu_data, 'reference') 970 ref_dir = self.PathJoin(gpu_data, 'reference')
950 971
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 # ArchiveCommand.createSummary. 1045 # ArchiveCommand.createSummary.
1025 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) 1046 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name)
1026 1047
1027 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): 1048 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'):
1028 if not factory_properties or 'gs_bucket' not in factory_properties: 1049 if not factory_properties or 'gs_bucket' not in factory_properties:
1029 return (_GetArchiveUrl('snapshots', builder_name), None) 1050 return (_GetArchiveUrl('snapshots', builder_name), None)
1030 gs_bucket = factory_properties['gs_bucket'] 1051 gs_bucket = factory_properties['gs_bucket']
1031 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', 1052 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/',
1032 gs_bucket) 1053 gs_bucket)
1033 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') 1054 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') | scripts/slave/runtest.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698