From 953783dc2bbfeb666006ca5349bd7879cf1f67a7 Mon Sep 17 00:00:00 2001 From: Vasilis Flouris Date: Mon, 1 Jun 2015 18:52:15 +0100 Subject: [PATCH] Adds the generic_chromeos device. --- .../linux/chromeos_test_image/__init__.py | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 wlauto/devices/linux/chromeos_test_image/__init__.py diff --git a/wlauto/devices/linux/chromeos_test_image/__init__.py b/wlauto/devices/linux/chromeos_test_image/__init__.py new file mode 100644 index 00000000..a8b56dcd --- /dev/null +++ b/wlauto/devices/linux/chromeos_test_image/__init__.py @@ -0,0 +1,54 @@ + +# Copyright 2014-2015 ARM Limited +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + +from wlauto import LinuxDevice, Parameter +from wlauto.utils.misc import convert_new_lines +import re + + +class ChromeOsDevice(LinuxDevice): + + name = "chromeos_test_image" + description = """ + Chrome OS test image device. Use this if you are working on a Chrome OS device with a test + image. An off the shelf device will not work with this device interface. + + More information on how to build a Chrome OS test image can be found here: + + https://www.chromium.org/chromium-os/developer-guide#TOC-Build-a-disk-image-for-your-board + + """ + + platform = 'chromeos' + abi = 'armeabi' + has_gpu = True + default_timeout = 100 + + parameters = [ + Parameter('core_names', default=[], override=True), + Parameter('core_clusters', default=[], override=True), + Parameter('username', default='root', override=True), + Parameter('password', default='test0000', override=True), + Parameter('password_prompt', default='Password:', override=True), + Parameter('binaries_directory', default='/usr/local/bin', override=True), + Parameter('working_directory', default='/home/root/wa-working', override=True), + ] + + def initialize(self, context, *args, **kwargs): + self.uninstall('busybox') # busybox that comes with chromeos is missing some usefull utilities + super(ChromeOsDevice, self).initialize(context, *args, **kwargs) +