43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
# Copyright 2020 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
AUTHOR = "Chrome OS Team"
|
|
NAME = "power_LoadTest.1hour_cellular"
|
|
PURPOSE = "Measure power draw when system is under load."
|
|
CRITERIA = "This test is a benchmark."
|
|
TIME = "LONG"
|
|
TEST_CATEGORY = "Benchmark"
|
|
TEST_CLASS = "power"
|
|
TEST_TYPE = "client"
|
|
|
|
DOC = """
|
|
This test runs a load test consisting of cycling though web pages, playing
|
|
videos, etc. and measures battery power draw. The duration of this test is
|
|
determined by the seconds variable.
|
|
|
|
|
|
The following manual steps need to be performed on the device under test
|
|
before this test can be run:
|
|
- make sure that Ethernet cable is disconnected and the cellular network
|
|
is connected
|
|
- disconnect power cable
|
|
|
|
Currently this test can only be executed locally on the DUT, not remotely
|
|
with 'test_that'.
|
|
|
|
You are now ready to run the test.
|
|
"""
|
|
|
|
# TODO (bleung): Find a way to do automatic Facebook login for test account.
|
|
# TODO (tbroch): Find way to not replicate all these parameters that are common
|
|
# between this control file and the original
|
|
loop_time = 3600
|
|
loop_count = 1
|
|
|
|
args_dict = utils.args_to_dict(args)
|
|
pdash_note = args_dict.get('pdash_note', '')
|
|
job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count,
|
|
test_low_batt_p=6, use_cellular_network=True,
|
|
tag=NAME.split('.')[1], pdash_note=pdash_note)
|