xref: /aosp_15_r20/external/autotest/client/site_tests/power_VideoCall/control.fast_crosbolt (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1AUTHOR = "puthik"
2NAME = "power_VideoCall.fast_crosbolt"
3PURPOSE = "Make sure power_VideoCall works fine."
4CRITERIA = "This test is a benchmark."
5TIME = "MEDIUM"
6TEST_CATEGORY = "Benchmark"
7TEST_CLASS = "power"
8TEST_TYPE = "client"
9ATTRIBUTES = "suite:crosbolt_perf_perbuild"
10PY_VERSION = 3
11
12DOC = """
13This test simulates video call multitasking and record power related statistic.
14
15Workload
16- Camera preview in 720p using VP9 codec.
17- Four 720p 30fps video playback with two VP8 videos and two VP9 videos.
18- Google Doc with emulated typing.
19
20The fast version only runs for 3 minutes to make sure the test works as expected.
21Crosbolt version adds force_discharge to collect total system power from battery.
22"""
23
24args_dict = utils.args_to_dict(args)
25pdash_note = args_dict.get('pdash_note', '')
26
27job.default_profile_only = True
28job.profilers.add('cros_perf', interval=20)
29
30job.run_test('power_VideoCall', pdash_note=pdash_note, duration=180,
31             tag=NAME.split('.')[1], seconds_period=5,
32             force_discharge='optional')
33
34job.profilers.delete('cros_perf')
35
36