| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 AUTHOR = "Chrome OS Team" | 5 AUTHOR = "Chrome OS Team" |
| 6 NAME = "Kernel Scheduler Performance" | 6 NAME = "Kernel Scheduler Performance" |
| 7 TIME = "SHORT" | 7 TIME = "SHORT" |
| 8 TEST_CATEGORY = "Benchmark" | 8 TEST_CATEGORY = "Benchmark" |
| 9 TEST_CLASS = "suite" | 9 TEST_CLASS = "suite" |
| 10 TEST_TYPE = "server" | 10 TEST_TYPE = "server" |
| 11 | 11 |
| 12 DOC = """ | 12 DOC = """ |
| 13 This test suite runs automated benchmarks for testing the performance of | 13 This test suite runs automated benchmarks for testing the performance of |
| 14 the kernel scheduler. | 14 the kernel scheduler. |
| 15 """ | 15 """ |
| 16 | 16 |
| 17 from autotest_lib.client.cros import cros_logging | 17 from autotest_lib.client.cros import cros_logging |
| 18 from autotest_lib.server import site_host_attributes | 18 from autotest_lib.server import site_host_attributes |
| 19 | 19 |
| 20 # TODO: Add some tests | 20 # TODO: Add some tests |
| 21 TESTS = [ | 21 TESTS = [ |
| 22 ('hackbench', {}), | 22 ('hackbench', {}), |
| 23 ] | 23 ] |
| 24 | 24 |
| 25 | 25 |
| 26 def run_tests(machine): | 26 def run_tests(machine): |
| 27 client = hosts.create_host(machine) | 27 client = hosts.create_host(machine) |
| 28 client_attributes = site_host_attributes.HostAttributes(machine) | 28 client_attributes = site_host_attributes.HostAttributes(machine) |
| 29 | 29 |
| 30 client_at = autotest.Autotest(client) | 30 client_at = autotest.Autotest(client) |
| 31 for test, argv in TESTS: | 31 for test, argv in TESTS: |
| 32 client_at.run_test(test, **argv) | 32 client_at.run_test(test, **argv) |
| 33 | 33 |
| 34 | 34 |
| 35 job.parallel_on_machines(run_tests, machines) | 35 job.parallel_on_machines(run_tests, machines) |
| OLD | NEW |