blob: bbdfcfefdafb91e26a919b20487e294531d2a697 [file] [log] [blame]
# Copyright 2018 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_MeasurementWrapper.moblab"
PURPOSE = "Measure power while running a client test."
CRITERIA = "This test is a wrapper for a client test."
ATTRIBUTES = "suite:power_measurement_wrapper"
TIME = "LONG"
TEST_CATEGORY = "Benchmark"
TEST_CLASS = "power"
TEST_TYPE = "server"
REQUIRE_SSP = False
DOC = """
This wrapper test automates the process of power measurement while running a
client test. Please check the client test's control file for any hardware
requirement, e.g. no AC power, no Ethernet.
This test makes the following assumptions:
1. Sweetberry config files are in directory
/usr/lib64/python2.7/site-packages/servo/data/
For example,
/usr/lib64/python2.7/site-packages/servo/data/eve_rev7.board
/usr/lib64/python2.7/site-packages/servo/data/eve_rev7.scenario
2. The workstation (or where the autotest is kicked off from) should be in same
timezone with the DUT.
Sample usage:
test_that <ip address of DUT> power_MeasurementWrapper --args \
'test:power_LoadTest.fast sweetberry_interval:1 sweetberry_config:eve_rev7'
What are the parameters:
test: the client test to run in wrapper test; DUT power is measured during this
client test.
sweetberry_interval: number of seconds between each Sweetberry measurement.
sweetberry_config: use [].board and [].scenario as configuration file for
Sweetberry measurement; optional.
sweetberry_serial: serial number of sweetberry to use; If not supplied use
the first sweetberry found; optional.
"""
config_list_processed = config_list.split(' ')
def run(machine):
job.run_test('power_MeasurementWrapper', host=hosts.create_host(machine),
config_list=config_list_processed)
parallel_simple(run, machines)