Vic Yang | 57cb4b6 | 2012-09-06 03:27:03 +0800 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
Tom Wai-Hong Tam | 9233ebb | 2012-09-28 19:37:48 +0800 | [diff] [blame] | 5 | from autotest_lib.server import utils |
| 6 | |
Vic Yang | 57cb4b6 | 2012-09-06 03:27:03 +0800 | [diff] [blame] | 7 | AUTHOR = "Chrome OS Team" |
| 8 | NAME = "firmware_ECSharedMem" |
| 9 | PURPOSE = "Servo based EC shared memory test" |
| 10 | CRITERIA = "This test will fail if EC shared memory misbehaved." |
Aseda Aboagye | fbf9c95 | 2016-01-14 11:22:31 -0800 | [diff] [blame] | 11 | ATTRIBUTES = "suite:faft, suite:faft_ec, suite:faft_ec_ryu, suite:faft_ec3po" |
| 12 | SUITE = "faft,faft_ec,faft_ec_ryu,faft_ec3po" |
Tom Wai-Hong Tam | f636752 | 2013-01-23 09:44:56 +0800 | [diff] [blame] | 13 | TIME = "SHORT" |
Vic Yang | 57cb4b6 | 2012-09-06 03:27:03 +0800 | [diff] [blame] | 14 | TEST_CATEGORY = "Functional" |
| 15 | TEST_CLASS = "firmware" |
| 16 | TEST_TYPE = "server" |
Tom Wai-Hong Tam | fd46140 | 2016-01-29 07:09:49 +0800 | [diff] [blame^] | 17 | JOB_RETRIES = 4 |
Vic Yang | 57cb4b6 | 2012-09-06 03:27:03 +0800 | [diff] [blame] | 18 | |
| 19 | DOC = """ |
| 20 | This test checks EC has enough shared memory under following conditions: |
| 21 | - Normal operation |
| 22 | - Reboot after a crash |
| 23 | - Jumped between image |
| 24 | """ |
| 25 | |
Tom Wai-Hong Tam | 9233ebb | 2012-09-28 19:37:48 +0800 | [diff] [blame] | 26 | args_dict = utils.args_to_dict(args) |
Fang Deng | 0ca40e2 | 2013-08-27 17:47:44 -0700 | [diff] [blame] | 27 | servo_args = hosts.CrosHost.get_servo_arguments(args_dict) |
Tom Wai-Hong Tam | 9233ebb | 2012-09-28 19:37:48 +0800 | [diff] [blame] | 28 | |
Vic Yang | 57cb4b6 | 2012-09-06 03:27:03 +0800 | [diff] [blame] | 29 | def run_ecsharedmem(machine): |
J. Richard Barnette | 964fba0 | 2012-10-24 17:34:29 -0700 | [diff] [blame] | 30 | host = hosts.create_host(machine, servo_args=servo_args) |
Vic Yang | 57cb4b6 | 2012-09-06 03:27:03 +0800 | [diff] [blame] | 31 | job.run_test("firmware_ECSharedMem", host=host, cmdline_args=args, |
Tom Wai-Hong Tam | 54f4c58 | 2013-07-18 12:05:27 +0800 | [diff] [blame] | 32 | disable_sysinfo=True) |
Vic Yang | 57cb4b6 | 2012-09-06 03:27:03 +0800 | [diff] [blame] | 33 | |
| 34 | parallel_simple(run_ecsharedmem, machines) |