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

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
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
Marc-Antoine Ruel (Google) 2012/03/06 23:38:03 you mean <slavebuilddir> instead of SLAVE_NAME? N
Peter Mayo 2012/03/07 16:00:35 Guilty of blatant copying from below. PeterK: We
945 gen_dir = self.PathJoin('..', 'soft_gpu_data', 'generated')
946 ref_dir = self.PathJoin('..', 'gpu_data', 'reference')
947
948 tests = ':'.join(['GpuPixelBrowserTest.*', 'GpuFeatureTest.*',
Marc-Antoine Ruel (Google) 2012/03/06 23:38:03 fix alignment
Peter Mayo 2012/03/07 16:00:35 Done.
949 'Canvas2DPixelTestSD.*', 'Canvas2DPixelTestHD.*'])
950 # 'GPUCrashTest.*', while interesting, fails.
951
952 self.AddBasicGTestTestStep('gpu_tests', factory_properties,
953 description='(soft)',
954 arg_list=['--generated-dir=%s' % gen_dir,
Marc-Antoine Ruel (Google) 2012/03/06 23:38:03 fix alignment
Peter Mayo 2012/03/07 16:00:35 Done.
955 '--reference-dir=%s' % ref_dir, '--gtest_also_run_disabled_tests',
956 '--gtest_filter=%s' % tests],
957 test_tool_arg_list=['--llvmpipe'])
958
959 # Note: we aren't archiving these for the moment.
960
941 def AddGpuTests(self, factory_properties): 961 def AddGpuTests(self, factory_properties):
942 """Runs gpu_tests binary and archives any results. 962 """Runs gpu_tests binary and archives any results.
943 963
944 This binary contains all the tests that should be run on the gpu bots. 964 This binary contains all the tests that should be run on the gpu bots.
945 """ 965 """
946 # Put gpu data in /b/build/slave/SLAVE_NAME/gpu_data 966 # Put gpu data in /b/build/slave/SLAVE_NAME/gpu_data
947 gpu_data = self.PathJoin('..', 'gpu_data') 967 gpu_data = self.PathJoin('..', 'gpu_data')
948 gen_dir = self.PathJoin(gpu_data, 'generated') 968 gen_dir = self.PathJoin(gpu_data, 'generated')
949 ref_dir = self.PathJoin(gpu_data, 'reference') 969 ref_dir = self.PathJoin(gpu_data, 'reference')
950 970
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 # ArchiveCommand.createSummary. 1044 # ArchiveCommand.createSummary.
1025 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) 1045 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name)
1026 1046
1027 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): 1047 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'):
1028 if not factory_properties or 'gs_bucket' not in factory_properties: 1048 if not factory_properties or 'gs_bucket' not in factory_properties:
1029 return (_GetArchiveUrl('snapshots', builder_name), None) 1049 return (_GetArchiveUrl('snapshots', builder_name), None)
1030 gs_bucket = factory_properties['gs_bucket'] 1050 gs_bucket = factory_properties['gs_bucket']
1031 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', 1051 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/',
1032 gs_bucket) 1052 gs_bucket)
1033 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') 1053 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/master/factory/chromium_factory.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698