Home | History | Annotate | Download | only in camera_HAL3Server
      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 
      5 from autotest_lib.client.common_lib import error
      6 from autotest_lib.client.common_lib import utils
      7 
      8 AUTHOR = 'Chrome OS Team, chromeos-camera-eng (a] google.com'
      9 NAME = 'camera_HAL3Server.preview.back'
     10 ATTRIBUTES = ''
     11 TEST_TYPE = 'server'
     12 TIME = 'LONG'
     13 DOC = """
     14 Server-side test of cros_camera_test control over chart tablet and launch camera_HAL3 on DUT.
     15 """
     16 
     17 
     18 def 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=Camera3PreviewTest/*',
     30                     '--camera_facing=back'
     31             ])
     32 
     33 
     34 parallel_simple(run, machines)
     35