• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5NAME = "platform_BootPerfServer.bootperf"
6AUTHOR = "Chrome OS Team"
7TIME = "MEDIUM"
8TEST_CATEGORY = "Benchmark"
9TEST_CLASS = "platform"
10TEST_TYPE = "server"
11
12DOC = """
13This control file is meant for use by the "bootperf" script, in
14order to measure Chrome OS boot performance from a developer's
15desktop.
16"""
17
18# By design, the "site_utils/bootperf-bin/bootperf" script depends
19# on some key features of this control file:
20#   NAME must be "platform_BootPerfServer.bootperf".
21#   args[0] is expected to be an integer representing the number of
22#     iterations to perform.
23
24def run_bootperf(machine):
25    host = hosts.create_host(machine)
26    job.run_test("platform_BootPerfServer", host=host,
27                 iterations=int(args[0]))
28
29parallel_simple(run_bootperf, machines)
30