blob: 7b362e64a47458a24c0c6890b217b6edba4dc7c9 [file] [log] [blame]
# Copyright (c) 2010 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 = "PerfAlerts"
TIME = "LONG"
TEST_CATEGORY = "Benchmark"
TEST_CLASS = "suite"
TEST_TYPE = "server"
DOC = """
This test suite runs automated tests that record measurements for various
system metrics. In many cases a single test is repeated for a reasonable
sample such as completing 50 reboots in one test. The values recorded
will be used to identify performance/resource regressions and to alert
contributing (and previously unaware) developers of the impact.
Ideally these are run for each build in order to make blame easier.
"""
def run_assigned_tests(machine):
client = hosts.create_host(machine)
# Always make sure the host has a fresh install; avoid double fresh install.
if not client.has_just_updated():
client.machine_install(force_update=True)
job.run_test(
"platform_BootPerfServer", host=client, iterations=100,
disable_sysinfo=True)
job.parallel_on_machines(run_assigned_tests, machines)