Home | History | Annotate | Download | only in camera_V4L2
      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 
      5 AUTHOR = 'The Chromium OS Authors'
      6 NAME = 'camera_V4L2.certification'
      7 PURPOSE = 'Exercises v4l2 camera devices to verify required operations.'
      8 CRITERIA = """
      9 This is used for third-party lab to verify new camera modules.
     10 It is a complex test and tests many different functions. This test will fail
     11 if 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 """
     20 ATTRIBUTES = "suite:usb-camera"
     21 TIME='MEDIUM'
     22 TEST_CATEGORY = 'V4L2'
     23 TEST_TYPE = 'client'
     24 BUG_TEMPLATE = {
     25     'labels': ['OS-Chrome', 'VideoTestFailure'],
     26     'cc': ['chromeos-video-test-failures (a] google.com'],
     27 }
     28 
     29 DOC = """
     30 This test executes media_v4l2_test and media_v4l2_unittest binaries.
     31 For more information on V4L2 see:
     32 http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Intro-to-V4L2/
     33 
     34 This is used for third-party lab to verify camera module. The camera module is
     35 an external camera device to run all test cases.
     36 """
     37 
     38 job.run_test('camera_V4L2', test_list='certification', tag='certification')
     39