commit | 8bee0d9559959e3710b230f9704a57951279a4bb | [log] [tgz] |
---|---|---|
author | Lukasz Hajec <lha@semihalf.com> | Thu Aug 05 13:18:18 2021 +0200 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Aug 17 12:15:44 2021 +0000 |
tree | 3c026ba079c9670ac22e59ee7eb771b1b88a8efc | |
parent | aa6ca6dd0f584bcfba535e663530c3f1c7b95413 [diff] |
firmware_test: Replug Ethernet programmatically This patch adds Ethernet dongle replug during routine restoring system from a timeout (called in cleanup). This functionality is available only on ServoV4P1. Additionally this patch adds methods for servo's ethernet power management. BUG=b:177734303 TEST=Run custom firmware FATF using ServoV4P1. Manually disable Ethernet controller (using e.g. "ioexset EN_PP3300_ETH 0" in servo's console) during test. Make sure replug is done during timeout routine and Ethernet is running well after the test is finished. Change-Id: I97d5654e4cc3b6359fc600051c08e41dcd0ea2ef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/3074919 Tested-by: Lukasz Hajec <lha@semihalf.com> Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org> Commit-Queue: Jan Dabros <dabros@google.com>
Autotest is a framework for fully automated testing. It was originally designed to test the Linux kernel, and expanded by the Chrome OS team to validate complete system images of Chrome OS and Android.
Autotest is composed of a number of modules that will help you to do stand alone tests or setup a fully automated test grid, depending on what you are up to. A non extensive list of functionality is:
A body of code to run tests on the device under test. In this setup, test logic executes on the machine being tested, and results are written to files for later collection from a development machine or lab infrastructure.
A body of code to run tests against a remote device under test. In this setup, test logic executes on a development machine or piece of lab infrastructure, and the device under test is controlled remotely via SSH/adb/some combination of the above.
Developer tools to execute one or more tests. test_that
for Chrome OS and test_droid
for Android allow developers to run tests against a device connected to their development machine on their desk. These tools are written so that the same test logic that runs in the lab will run at their desk, reducing the number of configurations under which tests are run.
Lab infrastructure to automate the running of tests. This infrastructure is capable of managing and running tests against thousands of devices in various lab environments. This includes code for both synchronous and asynchronous scheduling of tests. Tests are run against this hardware daily to validate every build of Chrome OS.
Infrastructure to set up miniature replicas of a full lab. A full lab does entail a certain amount of administrative work which isn't appropriate for a work group interested in automated tests against a small set of devices. Since this scale is common during device bringup, a special setup, called Moblab, allows a natural progressing from desk -> mini lab -> full lab.
See the guides to test_that
and test_droid
:
See the best practices guide, existing tests, and comments in the code.
git clone https://chromium.googlesource.com/chromiumos/third_party/autotest
See the coding style guide for guidance on submitting patches.
You need to run utils/build_externals.py
to set up the dependencies for pre-upload hook tests.