OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 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 Filesystem Performance" | 6 NAME = "Kernel Filesystem 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 filesystem and block layers. | 14 the filesystem and block layers. |
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 ('kernel_HdParm', {}), |
22 ('dbench', {}), | 23 ('dbench', {}), |
23 ] | 24 ] |
24 | 25 |
25 | 26 |
26 def run_tests(machine): | 27 def run_tests(machine): |
27 client = hosts.create_host(machine) | 28 client = hosts.create_host(machine) |
28 client_attributes = site_host_attributes.HostAttributes(machine) | 29 client_attributes = site_host_attributes.HostAttributes(machine) |
29 | 30 |
30 client_at = autotest.Autotest(client) | 31 client_at = autotest.Autotest(client) |
31 for test, argv in TESTS: | 32 for test, argv in TESTS: |
32 client_at.run_test(test, **argv) | 33 client_at.run_test(test, **argv) |
33 | 34 |
34 | 35 |
35 job.parallel_on_machines(run_tests, machines) | 36 job.parallel_on_machines(run_tests, machines) |
OLD | NEW |