You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
# Copyright 2018 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
from autotest_lib.client.common_lib import error
|
|
from autotest_lib.client.common_lib import utils
|
|
|
|
AUTHOR = 'Chrome OS Team, chromeos-camera-eng@google.com'
|
|
NAME = 'camera_HAL3Server.jda.front'
|
|
ATTRIBUTES = ''
|
|
TEST_TYPE = 'server'
|
|
TIME = 'LONG'
|
|
DOC = """
|
|
Server-side test of cros_camera_test control over chart tablet and launch camera_HAL3 on DUT.
|
|
"""
|
|
|
|
|
|
def run(machine):
|
|
chart_ip = utils.args_to_dict(args).get(
|
|
'chart') or utils.get_lab_chart_address(machine)
|
|
if not chart_ip:
|
|
raise error.TestError('missing option --args="chart=<CHART IP>"')
|
|
|
|
job.run_test(
|
|
'camera_HAL3Server',
|
|
host=hosts.create_host(machine),
|
|
chart_host=hosts.create_host(chart_ip),
|
|
cmd_timeout=5,
|
|
camera_hals=['usb.so'],
|
|
options=[
|
|
'--gtest_filter=*/Camera3SingleFrameTest.GetFrame/0',
|
|
'--camera_facing=front'
|
|
],
|
|
capability='hw_dec_jpeg',
|
|
test_config={'force_jpeg_hw_dec': True})
|
|
|
|
|
|
parallel_simple(run, machines)
|