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

Side by Side Diff: scripts/slave/recipe_modules/webrtc/api.py

Issue 177553005: Updates to WebRTC Baremetal recipe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Use Chromium's SVN mirror for WebRTC when run in Chrome infra. Created 6 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/slave/recipe_modules/webrtc/gclient_config.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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 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 from slave import recipe_api 5 from slave import recipe_api
6 6
7 class WebRTCApi(recipe_api.RecipeApi): 7 class WebRTCApi(recipe_api.RecipeApi):
8 def __init__(self, **kwargs): 8 def __init__(self, **kwargs):
9 super(WebRTCApi, self).__init__(**kwargs) 9 super(WebRTCApi, self).__init__(**kwargs)
10 self._env = {} 10 self._env = {}
11 11
12 COMMON_TESTS = [ 12 COMMON_TESTS = [
13 'audio_decoder_unittests', 13 'audio_decoder_unittests',
14 'common_audio_unittests', 14 'common_audio_unittests',
15 'common_video_unittests', 15 'common_video_unittests',
16 'modules_tests', 16 'modules_tests',
17 'modules_unittests', 17 'modules_unittests',
18 'neteq_unittests', 18 'neteq_unittests',
19 'system_wrappers_unittests', 19 'system_wrappers_unittests',
20 'test_support_unittests', 20 'test_support_unittests',
21 'tools_unittests', 21 'tools_unittests',
22 'video_engine_core_unittests', 22 'video_engine_core_unittests',
23 'voice_engine_unittests', 23 'voice_engine_unittests',
24 ] 24 ]
25 25
26 ANDROID_APK_TESTS = COMMON_TESTS 26 ANDROID_APK_TESTS = COMMON_TESTS
27 27
28 def add_baremetal_tests(self): 28 def add_baremetal_tests(self):
29 """Adds baremetal tests, which are different depending on the platform.""" 29 """Adds baremetal tests, which are different depending on the platform."""
30 vie_auto_test_args = [
31 '--automated',
32 '--capture_test_ensure_resolution_alignment_in_capture_device=false',
33 ]
34
35 c = self.m.chromium 30 c = self.m.chromium
36 path = self.m.path 31 path = self.m.path
37 32
38 if self.m.platform.is_win: 33 if self.m.platform.is_win or self.m.platform.is_mac:
39 yield ( 34 yield c.runtest('audio_device_tests')
40 c.runtest('audio_device_tests'),
41 c.runtest('vie_auto_test', args=vie_auto_test_args),
42 c.runtest('video_capture_tests'),
43 c.runtest('voe_auto_test', args=['--automated']),
44 )
45 elif self.m.platform.is_mac:
46 yield (
47 c.runtest('audio_device_tests'),
48 c.runtest(('libjingle_peerconnection_objc_test.app/Contents/MacOS/'
49 'libjingle_peerconnection_objc_test'),
50 name='libjingle_peerconnection_objc_test',
51 args=vie_auto_test_args),
52 c.runtest('vie_auto_test', args=vie_auto_test_args),
53 c.runtest('video_capture_tests'),
54 c.runtest('voe_auto_test', args=['--automated']),
55 )
56 elif self.m.platform.is_linux: 35 elif self.m.platform.is_linux:
57 yield ( 36 yield (
58 c.runtest('audioproc', name='audioproc_perf', 37 c.runtest('audioproc', name='audioproc_perf',
59 args=['-aecm', '-ns', '-agc', '--fixed_digital', '--perf', 38 args=['-aecm', '-ns', '-agc', '--fixed_digital', '--perf',
60 '-pb', path.checkout('resources/audioproc.aecdump')]), 39 '-pb', path.checkout('resources/audioproc.aecdump')]),
61 c.runtest('iSACFixtest', name='isac_fixed_perf', 40 c.runtest('iSACFixtest', name='isac_fixed_perf',
62 args=['32000', 41 args=['32000',
63 path.checkout('resources/speech_and_misc_wb.pcm'), 42 path.checkout('resources/speech_and_misc_wb.pcm'),
64 'isac_speech_and_misc_wb.pcm']), 43 'isac_speech_and_misc_wb.pcm']),
65 c.runtest('libjingle_peerconnection_java_unittest', 44 c.runtest('libjingle_peerconnection_java_unittest',
66 env={'LD_PRELOAD': 45 env={'LD_PRELOAD': '/usr/lib/x86_64-linux-gnu/libpulse.so.0'}) ,
67 '/usr/lib/x86_64-linux-gnu/libpulse.so.0'}),
68 c.runtest('vie_auto_test', args=vie_auto_test_args),
69 c.runtest('video_capture_tests'),
70 c.runtest('voe_auto_test', args=['--automated']),
71 ) 46 )
72 47
48 yield (
49 c.runtest('vie_auto_test', args=[
50 '--automated',
51 '--capture_test_ensure_resolution_alignment_in_capture_device=false']),
52 c.runtest('voe_auto_test', args=['--automated']),
53 c.runtest('video_capture_tests'),
54 c.runtest('webrtc_perf_tests'),
55 )
56
73 def apply_svn_patch(self): 57 def apply_svn_patch(self):
74 script = self.m.path['build'].join('scripts', 'slave', 'apply_svn_patch.py') 58 script = self.m.path['build'].join('scripts', 'slave', 'apply_svn_patch.py')
75 # Use the SVN mirror as the slaves only have authentication setup for that. 59 # Use the SVN mirror as the slaves only have authentication setup for that.
76 patch_url = self.m.properties['patch_url'].replace( 60 patch_url = self.m.properties['patch_url'].replace(
77 'svn://svn.chromium.org', 'svn://svn-mirror.golo.chromium.org') 61 'svn://svn.chromium.org', 'svn://svn-mirror.golo.chromium.org')
78 args = ['-p', patch_url, 62 args = ['-p', patch_url,
79 '-r', self.c.patch_root_dir] 63 '-r', self.c.patch_root_dir]
80 64
81 # Allow manipulating patches for try jobs. 65 # Allow manipulating patches for try jobs.
82 if self.c.patch_filter_script and self.c.patch_path_filter: 66 if self.c.patch_filter_script and self.c.patch_path_filter:
83 args += ['--filter-script', self.c.patch_filter_script, 67 args += ['--filter-script', self.c.patch_filter_script,
84 '--strip-level', self.c.patch_strip_level, 68 '--strip-level', self.c.patch_strip_level,
85 '--', '--path-filter', self.c.patch_path_filter] 69 '--', '--path-filter', self.c.patch_path_filter]
86 return self.m.python('apply_patch', script, args) 70 return self.m.python('apply_patch', script, args)
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/webrtc/gclient_config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698