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