1# Copyright 2017 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
5AUTHOR = "Chrome OS Team, chromeos-video@google.com"
6NAME = "video_VDASanity"
7PURPOSE = "Run VDA unittest with a list of short videos for sanity testing."
8CRITERIA = """
9The test fails if the kernel crashes or video_decode_accelerator_unittest
10fails. If VDA notifies an error, VDA unittest will still pass because input
11may be unsupported or corrupted videos.
12"""
13ATTRIBUTES = "suite:bvt-perbuild"
14TIME = "SHORT"
15TEST_CATEGORY = "Functional"
16TEST_CLASS = "video"
17TEST_TYPE = "client"
18BUG_TEMPLATE = {
19    'labels': ['OS-Chrome', 'VideoTestFailure'],
20    'cc': ['chromeos-video-test-failures@google.com'],
21}
22
23DOC= """
24This autotest should run very fast. To ensure that, rendering of VDA
25unittest is off and the test videos should be as short as possible.
26"""
27
28# A list of test cases. Each entry consists of the following parts:
29#   [download_path, width, height, frame_num, fragment_num, MediaCodecProfile]
30test_cases = [
31    ['video_VDASanity/bear_profile1.vp9', 320, 180, 30, 30, 12],
32    ['video_VDASanity/bear_profile2.vp9', 320, 180, 30, 30, 12],
33    ['video_VDASanity/bear_profile3.vp9', 320, 180, 30, 30, 12],
34    # From Android CTS:
35    # https://android.googlesource.com/platform/cts/+/master/tests/tests/media/res/raw/vp90_2_17_show_existing_frame.vp9
36    ['video_VDASanity/vp90_2_17_show_existing_frame.vp9', 352, 288, 30, 30, 12],
37]
38
39job.run_test('video_VDASanity', test_cases=test_cases, tag='vp9', capability='hw_dec_vp9_1080_30')
40