xref: /aosp_15_r20/external/autotest/server/site_tests/telemetry_Crosperf/control (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright (c) 2013 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
5from autotest_lib.client.common_lib import utils
6from autotest_lib.server import utils as server_utils
7
8AUTHOR = "[email protected] [email protected]"
9NAME = "telemetry_Crosperf"
10TIME = "LONG"
11TEST_CATEGORY = "Benchmark"
12TEST_CLASS = "performance"
13TEST_TYPE = "server"
14JOB_RETRIES = 0
15PY_VERSION = 3
16
17DOC = """
18This runs various Telemetry performance tests under the crosperf script.
19This is part of ChromeOS Toolchain testing platform.
20"""
21
22# Put the args into the args_dict.
23args_dict = utils.args_to_dict(args)
24
25def run_telemetry_Crosperf(machine):
26    dut = hosts.create_host(machine)
27    hostname, _ = server_utils.get_host_info_from_machine(machine)
28    job.run_test('telemetry_Crosperf', client_ip=hostname,
29                  args=args_dict, dut=dut)
30
31# run the test in multiple machines
32
33job.parallel_simple(run_telemetry_Crosperf, machines)
34