commit | fcec89eb74ad76473eeda6b83d429778418afbdb | [log] [tgz] |
---|---|---|
author | Ed Baker <edward.baker@intel.com> | Wed Nov 13 09:23:59 2019 -0700 |
committer | Ilja H. Friedel <ihf@chromium.org> | Thu Jan 02 21:21:32 2020 +0000 |
tree | b1557b506c5320e16b5eec302ed1d0a876429c98 | |
parent | a7b0b65658f0ec0f816521ea09ecef4337fe52a3 [diff] |
graphics_KernelMemory: Update i915 paths This commit updates the paths used for i915 memory values and is a follow up to the change submitted at [1]. Logging self.GKM.num_errors is also replaced to address "Unhandled AttributeError: 'graphics_KernelMemory' object has no attribute 'GKM'". Example failure message: 11/13 08:03:17.044 ERROR| graphics_utils:1147| Unable to find any sysfs paths for field "memory" TestFail: Failed: Detected 1 errors accessing graphics memory. [1] https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1895010 BUG=None TEST=Verify graphics_KernelMemory passes on a 5.x kernel - Build eve or nocturne with an updated kernel. - `test_that ${dut_ip} graphics_KernelMemory` Change-Id: If95b29e514ad48dc53ee8d30a5c24a6fb2f5d83e Signed-off-by: Edward Baker <edward.baker@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1913635 Tested-by: Ilja H. Friedel <ihf@chromium.org> Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
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.