1 # Copyright (c) 2012 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 5 AUTHOR = "Chrome OS Perf/jrbarnette" 6 NAME = "BootPerf" 7 ATTRIBUTES = "suite:link_perf, suite:perfalerts" 8 TIME = "LONG" 9 TEST_CATEGORY = "Benchmark" 10 TEST_CLASS = "platform" 11 TEST_TYPE = "server" 12 13 DOC = """ 14 This test suite runs automated tests that record measurements for various 15 system metrics. In many cases a single test is repeated for a reasonable 16 sample such as completing 50 reboots in one test. The values recorded 17 will be used to identify performance/resource regressions and to alert 18 contributing (and previously unaware) developers of the impact. 19 Ideally these are run for each build in order to make blame easier. 20 21 To invoke this from the command line use syntax from the following examples: 22 --To modify the iteration count: 23 test_that -b ${BOARD} --iterations=10 'f:.*control.perfalerts' 24 """ 25 26 from autotest_lib.client.common_lib import utils 27 28 dict_args = utils.args_to_dict(args) 29 iterations = int(dict_args.get('iterations', 100)) 30 31 32 def run_bootperf(machine): 33 host = hosts.create_host(machine) 34 job.run_test('platform_BootPerfServer', host=host, 35 iterations=iterations, upload_perf=True) 36 37 38 parallel_simple(run_bootperf, machines) 39