1# Copyright (c) 2018 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
5AUTHOR = "Chrome OS Team"
6NAME = "power_LoadTest.eth_1hour"
7ATTRIBUTES = ""
8PURPOSE = "Measure power draw when system is under load."
9CRITERIA = "This test is a benchmark."
10TIME = "LONG"
11TEST_CATEGORY = "Benchmark"
12TEST_CLASS = "power"
13TEST_TYPE = "client"
14
15DOC = """
16This test runs a load test consisting of cycling though web pages, playing
17videos, etc. and measures battery power draw. The maximum duration of this test
18in seconds is determined by the loop_time * loop_cnt.
19"""
20loop_time = 3600
21loop_count = 1
22
23# Run this test to verify PLT on systems where wlan is not properly running
24# yet.
25args_dict = utils.args_to_dict(args)
26pdash_note = args_dict.get('pdash_note', '')
27job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count,
28             test_low_batt_p=6, check_network=False, tag=NAME.split('.')[1],
29             pdash_note=pdash_note)
30