xref: /aosp_15_r20/external/autotest/server/site_tests/tast/control.camerabox-facing-front (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1*9c5db199SXin Li# Copyright 2020 The Chromium OS Authors. All rights reserved.
2*9c5db199SXin Li# Use of this source code is governed by a BSD-style license that can be
3*9c5db199SXin Li# found in the LICENSE file.
4*9c5db199SXin Li
5*9c5db199SXin LiAUTHOR = 'ChromeOS Camera Team/chromeos-camera-eng@google.com'
6*9c5db199SXin LiNAME = 'tast.camerabox-facing-front'
7*9c5db199SXin LiTIME = 'MEDIUM'
8*9c5db199SXin LiTEST_TYPE = 'Server'
9*9c5db199SXin LiATTRIBUTES = 'suite:camerabox_facing-front'
10*9c5db199SXin LiMAX_RESULT_SIZE_KB = 1024 * 1024
11*9c5db199SXin LiPY_VERSION = 3
12*9c5db199SXin Li
13*9c5db199SXin Li# tast.py uses binaries installed from autotest_server_package.tar.bz2.
14*9c5db199SXin LiREQUIRE_SSP = True
15*9c5db199SXin Li
16*9c5db199SXin LiDOC = '''
17*9c5db199SXin LiRun the Tast camerabox_facing-front test suite.
18*9c5db199SXin Li
19*9c5db199SXin LiTast is an integration-testing framework analagous to the test-running portion
20*9c5db199SXin Liof Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for
21*9c5db199SXin Limore information.
22*9c5db199SXin Li
23*9c5db199SXin LiThis test runs all Tast-based front camera tests against a remote DUT in front
24*9c5db199SXin Lifacing camerabox setup.
25*9c5db199SXin Li
26*9c5db199SXin LiSee http://go/tast-failures for information about investigating failures.
27*9c5db199SXin Li'''
28*9c5db199SXin Li
29*9c5db199SXin Lidef run(machine):
30*9c5db199SXin Li    # By setting "use_camera_box" to true, the IP address of chart device in
31*9c5db199SXin Li    # CameraBox can be brought when running tests to allow local tests connect
32*9c5db199SXin Li    # to chart directly.
33*9c5db199SXin Li    job.run_test('tast',
34*9c5db199SXin Li                 host=hosts.create_host(machine),
35*9c5db199SXin Li                 test_exprs=['("group:camerabox" && camerabox_facing_front)'],
36*9c5db199SXin Li                 ignore_test_failures=True, max_run_sec=60*60*3,
37*9c5db199SXin Li                 use_camera_box=True, command_args=args)
38*9c5db199SXin Li
39*9c5db199SXin Liparallel_simple(run, machines)
40