• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2014 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
5AUTHOR = "puthik"
6NAME = "MemoryQual.quick"
7ATTRIBUTES = "suite:memory_qual_quick"
8TIME = "MEDIUM"
9TEST_CATEGORY = "Stress"
10TEST_CLASS = "suite"
11TEST_TYPE = "server"
12
13DOC = """
14Sequence for testing the Memory Qual running from the fixed devices.
15"""
16
17CLIENT_TESTS= [
18    ('platform_MemCheck', {}),
19    ('hardware_RamFio', {
20        'requirements': [('ram_suite', [])]}),
21    ('hardware_MemoryThroughput', {
22        'tag': 'quick', 'test': 'bcopy', 'warmup': 10, 'num_iterations': 5,
23        'parallel': 1, 'sizes' : [ 16 * 1024 * 1024]}),
24    ('hardware_MemoryLatency', {
25        'sample_size_kb': [ int(2), int(192), int(1024)]}),
26    ('hardware_Memtester', {
27        'tag' : 'quick', 'size' : 10 * 1024, 'loop' : 1}),
28    ('hardware_SAT', {
29        'tag' : 'quick', 'seconds' : 10}),
30    ('power_MemorySuspend', {
31        'tag' : 'quick', 'num_suspends' : 2}),
32]
33
34SERVER_TESTS= [
35    ('hardware_MemoryIntegrity', {
36        'tag' : 'quick', 'seconds' : 30, 'suspend': False}),
37]
38
39def run_client_test(machine):
40    client = hosts.create_host(machine)
41    client_at = autotest.Autotest(client)
42    for test, argv in CLIENT_TESTS:
43        client.reboot()
44        client_at.run_test(test, **argv)
45
46def run_server_test(machine):
47    client = hosts.create_host(machine)
48    for test, argv in SERVER_TESTS:
49        client.reboot()
50        job.run_test(test, client_ip=machine, **argv)
51
52
53job.parallel_on_machines(run_client_test, machines)
54parallel_simple(run_server_test, machines)
55