OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 recipe_engine.types import freeze | 5 from recipe_engine.types import freeze |
6 | 6 |
7 DEPS = [ | 7 DEPS = [ |
8 'depot_tools/git', | 8 'depot_tools/git', |
| 9 'depot_tools/infra_paths', |
9 'recipe_engine/json', | 10 'recipe_engine/json', |
10 'recipe_engine/path', | 11 'recipe_engine/path', |
11 'perf_dashboard', | 12 'perf_dashboard', |
12 'recipe_engine/platform', | 13 'recipe_engine/platform', |
13 'recipe_engine/properties', | 14 'recipe_engine/properties', |
14 'recipe_engine/python', | 15 'recipe_engine/python', |
15 'recipe_engine/raw_io', | 16 'recipe_engine/raw_io', |
16 'recipe_engine/step', | 17 'recipe_engine/step', |
17 ] | 18 ] |
18 | 19 |
(...skipping 17 matching lines...) Expand all Loading... |
36 | 37 |
37 from recipe_engine.recipe_api import Property | 38 from recipe_engine.recipe_api import Property |
38 | 39 |
39 PROPERTIES = { | 40 PROPERTIES = { |
40 'libvpx_git_url': Property(), | 41 'libvpx_git_url': Property(), |
41 'buildername': Property(), | 42 'buildername': Property(), |
42 } | 43 } |
43 | 44 |
44 def RunSteps(api, libvpx_git_url, buildername): | 45 def RunSteps(api, libvpx_git_url, buildername): |
45 # Paths and other constants | 46 # Paths and other constants |
46 build_root = api.path['slave_build'] | 47 build_root = api.infra_paths['slave_build'] |
47 | 48 |
48 # Android tools DEPS | 49 # Android tools DEPS |
49 android_tools_root = build_root.join('android_tools') | 50 android_tools_root = build_root.join('android_tools') |
50 adb = android_tools_root.join('sdk', 'platform-tools', 'adb') | 51 adb = android_tools_root.join('sdk', 'platform-tools', 'adb') |
51 ndk_root = android_tools_root.join('ndk') | 52 ndk_root = android_tools_root.join('ndk') |
52 | 53 |
53 # libvpx paths | 54 # libvpx paths |
54 libvpx_root = build_root.join('libvpx') | 55 libvpx_root = build_root.join('libvpx') |
55 test_data = build_root.join('test_data') | 56 test_data = build_root.join('test_data') |
56 | 57 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 101 |
101 test_root = libvpx_root.join('test') | 102 test_root = libvpx_root.join('test') |
102 api.python( | 103 api.python( |
103 'get_files', test_root.join('android', 'get_files.py'), | 104 'get_files', test_root.join('android', 'get_files.py'), |
104 args=[ | 105 args=[ |
105 '-i', test_root.join('test-data.sha1'), | 106 '-i', test_root.join('test-data.sha1'), |
106 '-o', test_data, '-u', TEST_FILES_URL]) | 107 '-o', test_data, '-u', TEST_FILES_URL]) |
107 | 108 |
108 api.python( | 109 api.python( |
109 'transfer_files', | 110 'transfer_files', |
110 api.path['build'].join('scripts', 'slave', 'android', | 111 api.infra_paths['build'].join('scripts', 'slave', 'android', |
111 'transfer_files.py'), | 112 'transfer_files.py'), |
112 args=[adb, DEVICE_ROOT, test_data]) | 113 args=[adb, DEVICE_ROOT, test_data]) |
113 | 114 |
114 lib_root = build_root.join('libs', 'armeabi-v7a') | 115 lib_root = build_root.join('libs', 'armeabi-v7a') |
115 api.step('push_so', [adb, 'push', lib_root, DEVICE_ROOT]) | 116 api.step('push_so', [adb, 'push', lib_root, DEVICE_ROOT]) |
116 | 117 |
117 step_result = api.python.inline( | 118 step_result = api.python.inline( |
118 'adb_wrap', r""" | 119 'adb_wrap', r""" |
119 import sys, subprocess, time | 120 import sys, subprocess, time |
120 out = open(sys.argv[1], "w") | 121 out = open(sys.argv[1], "w") |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 "encodeTimeSecs": 56.277676, | 210 "encodeTimeSecs": 56.277676, |
210 "speed" : 5, | 211 "speed" : 5, |
211 "minPsnr" : 43.5, | 212 "minPsnr" : 43.5, |
212 "framesPerSecond": 317.976883, | 213 "framesPerSecond": 317.976883, |
213 "threadCount": 2, | 214 "threadCount": 2, |
214 "totalFrames": 17895, | 215 "totalFrames": 17895, |
215 "version": "v1.3.0-2045-g38c2d37", | 216 "version": "v1.3.0-2045-g38c2d37", |
216 "videoName": "vp90-2-bbb_640x360_tile_1x2_337kbps.webm" | 217 "videoName": "vp90-2-bbb_640x360_tile_1x2_337kbps.webm" |
217 } | 218 } |
218 ]))) | 219 ]))) |
OLD | NEW |