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" 18DEPENDENCIES='hw_video_acc_vp9' 19BUG_TEMPLATE = { 20 'labels': ['OS-Chrome', 'VideoTestFailure'], 21 'cc': ['chromeos-video-test-failures@google.com'], 22} 23 24DOC= """ 25This autotest should run very fast. To ensure that, rendering of VDA 26unittest is off and the test videos should be as short as possible. 27""" 28 29# A list of test cases. Each entry consists of the following parts: 30# [download_path, width, height, frame_num, fragment_num, MediaCodecProfile] 31test_cases = [ 32 ['video_VDASanity/bear_profile1.vp9', 320, 180, 30, 30, 12], 33 ['video_VDASanity/bear_profile2.vp9', 320, 180, 30, 30, 12], 34 ['video_VDASanity/bear_profile3.vp9', 320, 180, 30, 30, 12], 35] 36 37job.run_test('video_VDASanity', test_cases=test_cases, tag='vp9') 38