commit | c979233843f28946d9e98e4a268cd5582f9ac86b | [log] [tgz] |
---|---|---|
author | Derek Beckett <dbeckett@chromium.org> | Fri Aug 27 22:49:09 2021 |
committer | Derek Beckett <dbeckett@chromium.org> | Wed Sep 01 16:46:30 2021 |
tree | a9bdb25341628f8c010f62d165bef840e4a9aa1c | |
parent | a20b12ae5ed330d4ded7e43caf6ee5880df7aeb3 [diff] |
tauto - remove more test libs now that cros_host is gone BUG=None TEST=dummy_Pass, unittest_suite Change-Id: I693a03c87568a5c31159807eee8ebaf149bbc6fe Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tauto/+/3125466 Tested-by: Derek Beckett <dbeckett@chromium.org> Reviewed-by: C Shapiro <shapiroc@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:
TODO: formalize/finish this.
Currently, Tauto only has 1 test to verify basic test-harness stability. This test is a client side test, dummy_Pass. There are no server side tests (yet).
To work in Tauto, the only requirement is a reasonably up-to-date chroot, and a working dut (test build) on a network your chroot can ssh with (lab network).
To run a test:
(inside) cd ~/trunk/src/platform/tauto/ export tauto_dir=$(pwd) cd site_utils ssh-agent python3 test_that.py <DUT IP> dummy_Pass --autotest_dir=${tauto_dir} --py_version=3
Note: There is a TODO to clean this up to a cleaner cmd, but for now it should work.
If this works, you should see something like this:
--------------------------------------------------------------------------- /tmp/test_that_results_ib6w8qq6/results-1-dummy_Pass [ PASSED ] /tmp/test_that_results_ib6w8qq6/results-1-dummy_Pass/dummy_Pass [ PASSED ] --------------------------------------------------------------------------- Total PASS: 2/2 (100%)
Note2: For some TBD reason, this test is a little slower than it should be, but after the first run, all subsiquent should be <20 seconds or so.
TODO
TODO
See the coding style guide for guidance on submitting patches.
TODO
Right now its not expected that all the Tauto unittest's work (this note will be removed when they do). Thus, running those prior to checkin is not expected. However, the dummy_Pass
test must work in python 3 prior to a checkin. Please do not check in without running this test. It only takes ~10-20 seconds, and saves lots of headache of a harness breaking, as there is no CQ-coverage ATM. Additionally, as there no CQ coverage, once you get an OWNER +2, just submit.