Home | History | Annotate | Download | only in platform_BootPerfServer
      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 
      5 NAME = "platform_BootPerfServer.bootperf"
      6 AUTHOR = "Chrome OS Team"
      7 TIME = "MEDIUM"
      8 TEST_CATEGORY = "Benchmark"
      9 TEST_CLASS = "platform"
     10 TEST_TYPE = "server"
     11 
     12 DOC = """
     13 This control file is meant for use by the "bootperf" script, in
     14 order to measure Chrome OS boot performance from a developer's
     15 desktop.
     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 
     24 def run_bootperf(machine):
     25     host = hosts.create_host(machine)
     26     job.run_test("platform_BootPerfServer", host=host,
     27                  iterations=int(args[0]))
     28 
     29 parallel_simple(run_bootperf, machines)
     30