commit | bcabe44e87bd389ef4401b112a88388d11cd9247 | [log] [tgz] |
---|---|---|
author | David Haddock <dhaddock@chromium.org> | Tue Apr 03 17:44:15 2018 -0700 |
committer | chrome-bot <chrome-bot@chromium.org> | Tue Apr 10 13:44:12 2018 -0700 |
tree | 007a7543a1cbe1186bae28e2f5ae7a0c633f0a9f | |
parent | 2aac43aa6ae6fe5c95144be4da74ebd43867911b [diff] |
More tests for bad data in omaha response. This adds on the previous autoupdate_OmahaResponse CL to add tests for dealing with bad metadata_size and SHA256 values in the omaha response. It is automating the test cases in section 1.14 here: https://testtracker.googleplex.com/testplans/details/450 This CL adds a new client test autoupdate_BadMetadata that will do the actual checking and handling of the update. The server test (autoupdate_OmahaResponse) was updated to call this new test. This CL also adds a raise_error boolean to check_update_engine_log_for_entry that I forgot to add to the last CL. BUG=chromium:828686 TEST=autoupdate_OmahaResponse.local with all 3 tests. Change-Id: I0e8f9fe193e07c8a5d364d7101c99f49743428cc Reviewed-on: https://chromium-review.googlesource.com/994261 Commit-Ready: David Haddock <dhaddock@chromium.org> Tested-by: David Haddock <dhaddock@chromium.org> Reviewed-by: Amin Hassani <ahassani@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.