xref: /aosp_15_r20/external/autotest/client/site_tests/power_VideoSuspend/control.multiformat (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright (c) 2012 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# TEST IS DISABLED UNTIL MIGRATED TO PYTHON 3.
6# For instructions on how to: go/tauto-py3-migration
7# To re-enable migrate to Python 3.
8# If the test is not migrated by 1/14/22 it will be deleted.
9
10AUTHOR = "ChromeOS Team"
11NAME = "power_VideoSuspend.multiformat"
12#TODO: move back to suite:kernel_daily_regression when test stable.
13ATTRIBUTES = "suite:experimental"
14TIME = "MEDIUM"
15TEST_CATEGORY = "Functional"
16TEST_CLASS = "power"
17TEST_TYPE = "client"
18PY_VERSION = 3
19
20DOC = """
21Suspends the system with a video playing.
22
23This version of the test plays multiple formats (mp4, webm, ogg).
24"""
25
26videos = [
27    'big_buck_bunny/big_buck_bunny_trailer_400p.mp4',
28    'big_buck_bunny/big_buck_bunny_trailer_400p.ogg',
29    'big_buck_bunny/big_buck_bunny_trailer_400p.webm',
30    'big_buck_bunny/big_buck_bunny_trailer_1080p.mp4',
31    'big_buck_bunny/big_buck_bunny_trailer_1080p.ogg',
32    'big_buck_bunny/big_buck_bunny_trailer_1080p.webm',
33]
34
35base_url = 'http://commondatastorage.googleapis.com/chromeos-test-public/'
36video_urls = [base_url + video for video in videos]
37
38job.add_sysinfo_logfile('/sys/kernel/debug/suspend_stats', on_every_test=True)
39job.run_test('power_VideoSuspend', video_urls=video_urls, tag='multiformat')
40