blob: 84160514fa08001a76ac080e5ef43d0a065982c0 [file] [log] [blame]
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.client.common_lib import utils
AUTHOR = "Chrome OS Team, chromeos-video@google.com"
NAME = "camera_HAL3.jea"
PURPOSE = "Verify Jpeg encode accelerator works in USB HALv3."
CRITERIA = """
This test will fail if there is a JEA encode error.
"""
ATTRIBUTES = "suite:bvt-perbuild"
TIME = "SHORT"
TEST_CATEGORY = "Functional"
TEST_CLASS = "video"
TEST_TYPE = "client"
BUG_TEMPLATE = {
'labels': ['OS-Chrome', 'VideoTestFailure'],
'cc': ['chromeos-video-test-failures@google.com'],
}
DOC = """
This test runs camera3 test to verify JEA function.
"""
facing_options = [
'--%s=%s' % kv
for kv in utils.args_to_dict(args).items()
if kv[0] == 'camera_facing'
]
job.run_test(
'camera_HAL3',
cmd_timeout=5,
options=[
'--gtest_filter=*/Camera3SimpleStillCaptureTest.TakePictureTest/0'
] + facing_options,
capability='hw_enc_jpeg',
test_config={'force_jpeg_hw_enc': True})