• 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"
7ATTRIBUTES = "suite:memory_qual"
8TIME = "LENGTHY"
9TEST_CATEGORY = "Stress"
10TEST_CLASS = "suite"
11TEST_TYPE = "server"
12
13DOC = """
14Sequence for qualification new memory part to AVL.
15"""
16
17HOUR_IN_SECS=60*60
18
19CLIENT_TESTS= [
20    ('platform_MemCheck', {}),
21    ('hardware_RamFio', {
22        'requirements': [('ram_suite', [])]}),
23    ('hardware_MemoryThroughput', {
24        'tag': 'memory_qual', 'test': 'bcopy', 'warmup': 100,
25        'num_iterations': 100, 'parallel': 2,
26        'sizes' : [ 1024, 2048, 4096, 8192,
27                    15360, 16384, 24576,
28                    30720, 32768, 33792,
29                    49152, 65536, 98304,
30                    130048, 131072, 256000,
31                    262144, 393216, 524288,
32                    1048576, 1468006, 1572864,
33                    1966080, 2097152, 2228224,
34                    2621440, 3072000, 3145728,
35                    3276800, 4194304, 8388608,
36                    16777216, 33554432, 67108864]}),
37    ('hardware_MemoryLatency', {
38        'sample_size_kb': [ int(2), int(192), int(1024)]}),
39    ('hardware_Memtester', {
40        'tag' : 'memory_qual', 'loop' : 100}),
41    ('hardware_SAT', {
42        'tag' : 'memory_qual', 'seconds' : 8 * HOUR_IN_SECS}),
43    ('power_MemorySuspend', {
44        'tag' : 'memory_qual', 'num_suspends' : 10000}),
45]
46
47SERVER_TESTS= [
48    ('hardware_MemoryIntegrity', {
49        'tag' : 'idle', 'seconds' : HOUR_IN_SECS, 'suspend': False}),
50    ('hardware_MemoryIntegrity', {
51        'tag' : 'suspend', 'seconds' : HOUR_IN_SECS, 'suspend': True}),
52]
53
54def run_client_test(machine):
55    client = hosts.create_host(machine)
56    client_at = autotest.Autotest(client)
57    for test, argv in CLIENT_TESTS:
58        client.reboot()
59        client_at.run_test(test, **argv)
60
61def run_server_test(machine):
62    client = hosts.create_host(machine)
63    for test, argv in SERVER_TESTS:
64        client.reboot()
65        job.run_test(test, client_ip=machine, **argv)
66
67
68job.parallel_on_machines(run_client_test, machines)
69parallel_simple(run_server_test, machines)
70