| Index: scripts/slave/recipes/android_webview_aosp_perf.py
|
| diff --git a/scripts/slave/recipes/android_webview_aosp_perf.py b/scripts/slave/recipes/android_webview_aosp_perf.py
|
| deleted file mode 100644
|
| index 74823e3f59075f29f346b715c5c8771747b344b6..0000000000000000000000000000000000000000
|
| --- a/scripts/slave/recipes/android_webview_aosp_perf.py
|
| +++ /dev/null
|
| @@ -1,87 +0,0 @@
|
| -# Copyright 2014 The Chromium Authors. All rights reserved.
|
| -# Use of this source code is governed by a BSD-style license that can be
|
| -# found in the LICENSE file.
|
| -
|
| -"""
|
| -Performance testing for the WebView.
|
| -"""
|
| -
|
| -from recipe_engine.types import freeze
|
| -
|
| -DEPS = [
|
| - 'adb',
|
| - 'depot_tools/bot_update',
|
| - 'chromium',
|
| - 'chromium_android',
|
| - 'depot_tools/gclient',
|
| - 'recipe_engine/json',
|
| - 'recipe_engine/path',
|
| - 'recipe_engine/properties',
|
| - 'recipe_engine/python',
|
| - 'recipe_engine/step',
|
| -]
|
| -
|
| -REPO_URL = 'https://chromium.googlesource.com/chromium/src.git'
|
| -
|
| -WEBVIEW_APK = 'SystemWebView.apk'
|
| -
|
| -TELEMETRY_SHELL_APK = 'SystemWebViewShell.apk'
|
| -
|
| -BUILDER = freeze({
|
| - 'perf_id': 'android-webview',
|
| - 'num_device_shards': 5,
|
| -})
|
| -
|
| -def RunSteps(api):
|
| - api.chromium_android.configure_from_properties('webview_perf',
|
| - REPO_NAME='src',
|
| - REPO_URL=REPO_URL,
|
| - INTERNAL=False,
|
| - BUILD_CONFIG='Release')
|
| -
|
| - # Sync code.
|
| - api.gclient.set_config('perf')
|
| - api.gclient.apply_config('android')
|
| - api.bot_update.ensure_checkout(force=True)
|
| - api.chromium_android.clean_local_files()
|
| -
|
| - # Gyp the chromium checkout.
|
| - api.chromium.runhooks()
|
| -
|
| - # Build the WebView apk, WebView shell and Android testing tools.
|
| - api.chromium.compile(targets=['android_tools',
|
| - 'push_apps_to_background_apk',
|
| - 'system_webview_apk',
|
| - 'system_webview_shell_apk'])
|
| -
|
| - api.chromium_android.spawn_logcat_monitor()
|
| - api.chromium_android.device_status_check()
|
| - api.chromium_android.provision_devices(
|
| - min_battery_level=95, disable_network=True, disable_java_debug=True,
|
| - reboot_timeout=180)
|
| -
|
| - # Install WebView
|
| - api.chromium_android.adb_install_apk(WEBVIEW_APK)
|
| -
|
| - # Install the telemetry shell.
|
| - api.chromium_android.adb_install_apk(TELEMETRY_SHELL_APK)
|
| -
|
| - # Run the tests.
|
| - api.adb.list_devices()
|
| - perf_tests = api.chromium.list_perf_tests(
|
| - browser='android-webview',
|
| - num_shards=BUILDER['num_device_shards'],
|
| - device=api.adb.devices[0]).json.output
|
| - try:
|
| - api.chromium_android.run_sharded_perf_tests(
|
| - config=api.json.input(data=perf_tests),
|
| - chartjson_file=True,
|
| - perf_id=BUILDER['perf_id'])
|
| - finally:
|
| - api.chromium_android.logcat_dump()
|
| - api.chromium_android.stack_tool_steps()
|
| - api.chromium_android.test_report()
|
| -
|
| -
|
| -def GenTests(api):
|
| - yield api.test('basic') + api.properties.scheduled()
|
|
|