Home | History | Annotate | Download | only in camera_HAL3
      1 # Copyright 2018 The Chromium 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 utils
      6 
      7 AUTHOR = "Chrome OS Team, chromeos-video (a] google.com"
      8 NAME = "camera_HAL3.jda"
      9 PURPOSE = "Verify Jpeg decode accelerator works in USB HALv3."
     10 CRITERIA = """
     11 This test will fail if there is a JDA decode error.
     12 """
     13 ATTRIBUTES = "suite:bvt-perbuild"
     14 TIME = "SHORT"
     15 TEST_CATEGORY = "Functional"
     16 TEST_CLASS = "video"
     17 TEST_TYPE = "client"
     18 BUG_TEMPLATE = {
     19     'labels': ['OS-Chrome', 'VideoTestFailure'],
     20     'cc': ['chromeos-video-test-failures (a] google.com'],
     21 }
     22 
     23 DOC = """
     24 This test runs camera3 test to verify JDA function.
     25 """
     26 
     27 facing_options = [
     28     '--%s=%s' % kv
     29     for kv in utils.args_to_dict(args).items()
     30     if kv[0] == 'camera_facing'
     31 ]
     32 
     33 job.run_test(
     34     'camera_HAL3',
     35     cmd_timeout=5,
     36     camera_hals=['usb.so'],
     37     options=['--gtest_filter=*/Camera3SingleFrameTest.GetFrame/0'] +
     38     facing_options,
     39     capability='hw_dec_jpeg',
     40     test_config={'force_jpeg_hw_dec': True})
     41