• 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.still_capture.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            options=[
29                    '--gtest_filter=Camera3StillCaptureTest/*',
30                    '--camera_facing=back'
31            ])
32
33
34parallel_simple(run, machines)
35