blob: 424f1df62393e80835dc9a11dd4edb1b20203a7f [file] [log] [blame]
Vic Yang57cb4b62012-09-06 03:27:03 +08001# 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 Tam9233ebb2012-09-28 19:37:48 +08005from autotest_lib.server import utils
6
Vic Yang57cb4b62012-09-06 03:27:03 +08007AUTHOR = "Chrome OS Team"
8NAME = "firmware_ECSharedMem"
9PURPOSE = "Servo based EC shared memory test"
10CRITERIA = "This test will fail if EC shared memory misbehaved."
Oleg Loskutoffc666f852019-08-09 17:01:14 -070011ATTRIBUTES = "suite:faft_ec, suite:faft_ec_au_1, suite:faft_ec_au_2, suite:faft_ec_au_3, suite:faft_ec3po, suite:faft_ec_tot"
Tom Wai-Hong Tamf6367522013-01-23 09:44:56 +080012TIME = "SHORT"
Vic Yang57cb4b62012-09-06 03:27:03 +080013TEST_CATEGORY = "Functional"
14TEST_CLASS = "firmware"
15TEST_TYPE = "server"
Tom Wai-Hong Tam0cbea5d2016-06-15 06:35:41 +080016DEPENDENCIES = "ec:cros"
Tom Wai-Hong Tamfd461402016-01-29 07:09:49 +080017JOB_RETRIES = 4
Vic Yang57cb4b62012-09-06 03:27:03 +080018
19DOC = """
20This 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 Tam9233ebb2012-09-28 19:37:48 +080026args_dict = utils.args_to_dict(args)
Fang Deng0ca40e22013-08-27 17:47:44 -070027servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
Tom Wai-Hong Tam9233ebb2012-09-28 19:37:48 +080028
Vic Yang57cb4b62012-09-06 03:27:03 +080029def run_ecsharedmem(machine):
J. Richard Barnette964fba02012-10-24 17:34:29 -070030 host = hosts.create_host(machine, servo_args=servo_args)
Vic Yang57cb4b62012-09-06 03:27:03 +080031 job.run_test("firmware_ECSharedMem", host=host, cmdline_args=args,
Tom Wai-Hong Tam54f4c582013-07-18 12:05:27 +080032 disable_sysinfo=True)
Vic Yang57cb4b62012-09-06 03:27:03 +080033
34parallel_simple(run_ecsharedmem, machines)