blob: d659e0f9fe8bb696bee69fe95b941a8838cf53df [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "Chrome OS Team"
NAME = "Kernel Filesystem Performance"
TIME = "LONG"
TEST_CATEGORY = "Benchmark"
TEST_CLASS = "suite"
TEST_TYPE = "server"
DOC = """
This test suite runs automated benchmarks for testing the performance of
the filesystem and block layers.
"""
from autotest_lib.client.cros import cros_logging
from autotest_lib.server import site_host_attributes
# TODO: Add some tests
TESTS = [
('hardware_StorageFio', {} ),
('kernel_HdParm', {}),
('dbench', {}),
# Bonnie: two results come out zero:
# randcreate_read_ksec
# randcreate_read_pctcp
# Not enough space to run these tests
('bonnie', {'extra_args':'-s512:256 -r0 -n128'}),
('compilebench', {}),
('iozone', {}),
('ddtest', {}),
]
def run_tests(machine):
client = hosts.create_host(machine)
client_attributes = site_host_attributes.HostAttributes(machine)
client_at = autotest.Autotest(client)
for test, argv in TESTS:
client_at.run_test(test, **argv)
job.parallel_on_machines(run_tests, machines)