aboutsummaryrefslogtreecommitdiff
path: root/server/site_tests/telemetry_Crosperf/control
blob: 0a86dad12a41f3e6b48cc2fb7952d972554241c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright (c) 2013 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.

from autotest_lib.client.common_lib import utils
from autotest_lib.server import utils as server_utils

AUTHOR = "cmtice@chromium.org c-compiler-chrome@google.com"
NAME = "telemetry_Crosperf"
TIME = "LONG"
TEST_CATEGORY = "Benchmark"
TEST_CLASS = "performance"
TEST_TYPE = "server"
JOB_RETRIES = 0
PY_VERSION = 3

DOC = """
This runs various Telemetry performance tests under the crosperf script.
This is part of ChromeOS Toolchain testing platform.
"""

# Put the args into the args_dict.
args_dict = utils.args_to_dict(args)

def run_telemetry_Crosperf(machine):
    dut = hosts.create_host(machine)
    hostname, _ = server_utils.get_host_info_from_machine(machine)
    job.run_test('telemetry_Crosperf', client_ip=hostname,
                  args=args_dict, dut=dut)

# run the test in multiple machines

job.parallel_simple(run_telemetry_Crosperf, machines)