OLD | NEW |
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.recipe_config import config_item_context, ConfigGroup | 5 from slave.recipe_config import config_item_context, ConfigGroup |
6 from slave.recipe_config import Single, Static, BadConf | 6 from slave.recipe_config import Single, Static, BadConf |
7 from slave.recipe_config_types import Path | 7 from slave.recipe_config_types import Path |
8 | 8 |
9 | 9 |
10 def BaseConfig(PERF_ID=None, PERF_CONFIG=None, **_kwargs): | 10 def BaseConfig(PERF_ID=None, PERF_CONFIG=None, **_kwargs): |
11 return ConfigGroup( | 11 return ConfigGroup( |
12 PERF_ID = Static(PERF_ID), | 12 PERF_ID = Static(PERF_ID), |
13 PERF_CONFIG = Static(PERF_CONFIG), | 13 PERF_CONFIG = Static(PERF_CONFIG), |
14 | |
15 patch_root_dir = Single(Path, required=False, empty_val=Path('[CHECKOUT]')), | |
16 | |
17 # Allow manipulating patches for try jobs. | |
18 patch_filter_script = Single(Path, required=False), | |
19 patch_path_filter = Single(basestring, required=False), | |
20 patch_strip_level = Single(int, required=False, empty_val=0), | |
21 ) | 14 ) |
22 | 15 |
23 VAR_TEST_MAP = { | 16 VAR_TEST_MAP = { |
24 'PERF_ID': (None, 'perf-id'), | 17 'PERF_ID': (None, 'perf-id'), |
25 'PERF_CONFIG': (None, '{}', '{"a_default_rev": "r_webrtc_rev"}'), | 18 'PERF_CONFIG': (None, '{}', '{"a_default_rev": "r_webrtc_rev"}'), |
26 } | 19 } |
27 | 20 |
28 def TEST_NAME_FORMAT(kwargs): | 21 def TEST_NAME_FORMAT(kwargs): |
29 return 'webrtc' | 22 return 'webrtc' |
30 | 23 |
31 config_ctx = config_item_context(BaseConfig, VAR_TEST_MAP, TEST_NAME_FORMAT) | 24 config_ctx = config_item_context(BaseConfig, VAR_TEST_MAP, TEST_NAME_FORMAT) |
32 | 25 |
33 | |
34 @config_ctx() | 26 @config_ctx() |
35 def webrtc(c): | 27 def webrtc(c): |
36 pass | 28 pass |
37 | 29 |
38 | |
39 @config_ctx() | 30 @config_ctx() |
40 def webrtc_clang(c): | 31 def webrtc_clang(c): |
41 pass | 32 pass |
42 | 33 |
43 | |
44 @config_ctx() | 34 @config_ctx() |
45 def webrtc_asan(c): | 35 def webrtc_asan(c): |
46 pass | 36 pass |
47 | 37 |
48 | |
49 @config_ctx() | 38 @config_ctx() |
50 def webrtc_lsan(c): | 39 def webrtc_lsan(c): |
51 pass | 40 pass |
52 | 41 |
53 | |
54 @config_ctx() | 42 @config_ctx() |
55 def webrtc_android(c): | 43 def webrtc_android(c): |
56 pass | 44 pass |
57 | 45 |
58 | |
59 @config_ctx() | 46 @config_ctx() |
60 def webrtc_android_clang(c): | 47 def webrtc_android_clang(c): |
61 pass | 48 pass |
62 | 49 |
63 | |
64 @config_ctx() | |
65 def webrtc_android_apk(c): | |
66 """ Build WebRTC native tests for Android as APKs.""" | |
67 pass | |
68 | |
69 | |
70 @config_ctx() | |
71 def webrtc_android_apk_try_builder(c): | |
72 """ Configure patch manipulation for WebRTC Android APK trybots.""" | |
73 c.patch_root_dir = Path('[CHECKOUT]', 'third_party', 'webrtc') | |
74 c.patch_filter_script = Path('[BUILD]', 'scripts', 'slave', | |
75 'patch_path_filter.py') | |
76 c.patch_path_filter = 'webrtc/' | |
77 c.patch_strip_level = 1 | |
78 | |
79 | |
80 @config_ctx() | 50 @config_ctx() |
81 def webrtc_ios(c): | 51 def webrtc_ios(c): |
82 pass | 52 pass |
83 | 53 |
84 | |
85 # Only exists to be able to set the PERF_ID and PERF_CONFIG configurations. | 54 # Only exists to be able to set the PERF_ID and PERF_CONFIG configurations. |
86 @config_ctx() | 55 @config_ctx() |
87 def chromium(c): | 56 def chromium(c): |
88 pass | 57 pass |
OLD | NEW |