• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2015 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_Consumption.fast"
7PURPOSE = "Measure power draw when system is under different kinds of load."
8CRITERIA = "This test is a benchmark."
9ATTRIBUTES = "suite:power_build"
10SUITE = "power_build"
11TIME = "SHORT"
12TEST_CATEGORY = "Benchmark"
13TEST_CLASS = "power"
14TEST_TYPE = "client"
15
16DOC = """This test runs a series of different tasks like media playback, flash
17animation, large file download etc. It measures and reports power
18consumptions during each of those tasks.
19
20Args:
21    short: Boolean, if True, run a shorter version of the test with fewer
22        measurements. Designed to run in under 5 minutes so it can be used in
23        the per-build test suite.
24    test_groups: list of sub-test groups to run. Those refer to _run_group_X()
25        methods. None - to use defaults hard-coded in the test.
26    reps: a multiplier used for running longer tests. With reps=N each sub-test
27        will run roughly N times longer. This is good for averaging out more
28        of the noise and therefore getting better accuracy.
29    ac_ok: Boolean, if True, allowed to run with power supply attached.
30"""
31
32INTERVAL_SECS = 5
33
34job.profilers.add('vmstat', INTERVAL_SECS)
35job.run_test('power_Consumption', short=True, ac_ok=True, reps=1)
36job.profilers.delete('vmstat')
37