• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2018 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5from autotest_lib.client.common_lib import error
6from autotest_lib.client.common_lib import utils
7
8AUTHOR = 'Chrome OS Team, chromeos-camera-eng@google.com'
9NAME = 'camera_HAL3Server.jda.back'
10ATTRIBUTES = ''
11TEST_TYPE = 'server'
12TIME = 'LONG'
13DOC = """
14Server-side test of cros_camera_test control over chart tablet and launch camera_HAL3 on DUT.
15"""
16
17
18def run(machine):
19    chart_ip = utils.args_to_dict(args).get(
20            'chart') or utils.get_lab_chart_address(machine)
21    if not chart_ip:
22        raise error.TestError('missing option --args="chart=<CHART IP>"')
23
24    job.run_test(
25            'camera_HAL3Server',
26            host=hosts.create_host(machine),
27            chart_host=hosts.create_host(chart_ip),
28            cmd_timeout=5,
29            camera_hals=['usb.so'],
30            options=[
31                    '--gtest_filter=*/Camera3SingleFrameTest.GetFrame/0',
32                    '--camera_facing=back'
33            ],
34            capability='hw_dec_jpeg',
35            test_config={'force_jpeg_hw_dec': True})
36
37
38parallel_simple(run, machines)
39