commit | df0a3a3a2b3ce70cd9aea93fac3448efd176e646 | [log] [tgz] |
---|---|---|
author | Rohit Makasana <rohitbm@chromium.org> | Fri Jun 30 13:55:18 2017 -0700 |
committer | chrome-bot <chrome-bot@chromium.org> | Tue Sep 05 23:01:13 2017 -0700 |
tree | 5c774b0600ec27ffb2f4d4c59ae4e2756d292e80 | |
parent | df3bffa18e0a21dd03df775acfb69b21ce598a9c [diff] |
Enabling provisioning for ARC TH CQ tests. This CL: - adds provisioning config for ARC TH. - adds CrOS provisioning into cheets update test. - adds a suite config for arc-presubmit. BUG=b:26895109 TEST=Tested on Moblab by running a suite. site_utils/run_suite.py -b veyron_minnie -i 'veyron_minnie-release/R61-9765.43.0' --cheets_build 'git_nyc-mr1-arc-m61/cheets_arm-usr/4295536' -p suites -s dummy_server --max_runtime_mins 20 Test scenarios: --> No CrOS update, update cheets image --> Update CrOS image, no cheets update --> Update CrOS image, update cheets image --> Update CrOS image, update cheets image (but CrOS image comes with the test cheets image, so action needed) --> No CrOS update, no cheets update --> Update a DUT with -cheetsth label to a normal cros-version: label using non-cheets provisioning. --> Update a DUT with a normal cros-version: label to -cheetsth using --cheets_build provisioning. Change-Id: I99a8586dc651fde08b8c9e1bef5d3459f8fa2d19 Reviewed-on: https://chromium-review.googlesource.com/557934 Commit-Ready: Rohit Makasana <rohitbm@chromium.org> Tested-by: Rohit Makasana <rohitbm@chromium.org> Reviewed-by: Simran Basi <sbasi@chromium.org> Reviewed-by: Dan Shi <dshi@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.