1# Copyright 2017 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
5AUTHOR = 'The Chromium OS Authors'
6NAME = 'camera_V4L2.certification'
7PURPOSE = 'Exercises v4l2 camera devices to verify required operations.'
8CRITERIA = """
9This is used for third-party lab to verify new camera modules.
10It is a complex test and tests many different functions. This test will fail
11if any of the following conditions occur:
12  - No camera configuration file is found
13  - No v4L2 device is found
14  - If a mandatory control is not supported
15  - If streaming is not supported
16  - If a required resolution is not supported when capturing a stream
17  - If frame rate is not constant
18  - If cropping doesn't meet android cropping requirement
19"""
20ATTRIBUTES = "suite:usb-camera"
21TIME='MEDIUM'
22TEST_CATEGORY = 'V4L2'
23TEST_TYPE = 'client'
24BUG_TEMPLATE = {
25    'labels': ['OS-Chrome', 'VideoTestFailure'],
26    'cc': ['chromeos-video-test-failures@google.com'],
27}
28
29DOC = """
30This test executes media_v4l2_test and media_v4l2_unittest binaries.
31For more information on V4L2 see:
32http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Intro-to-V4L2/
33
34This is used for third-party lab to verify camera module. The camera module is
35an external camera device to run all test cases.
36"""
37
38job.run_test('camera_V4L2', test_list='certification', tag='certification')
39