commit | 30aa2318b8ced018b88dba482590f8893b10d396 | [log] [tgz] |
---|---|---|
author | Alexander Lent <alent@google.com> | Fri Aug 04 19:36:27 2017 -0700 |
committer | chrome-bot <chrome-bot@chromium.org> | Fri Sep 08 22:08:55 2017 -0700 |
tree | e4bfede107b9b529fb568d71eb4f2e2134469fcb | |
parent | 14f4b74b2b84e19ca07159a31d8a82c2277821da [diff] |
[autotest] Expose Bluetooth LE HID emulation from Chameleon Add the necessary hooks to use BLE HID emulation on Chameleon from Autotest. These hooks allow tests to run with a BluetoothHOGFlow instead of a BluetoothHIDFlow. It explicitly does not configure tests to do so, that is a separate concern. (That may also require workarounds in Autotest due to parts of tests that cannot be generalized.) Also, fix method name typo bluetooh -> bluetooth for BR/EDR. CQ-DEPEND=CL:611780 BUG=chromium:752719 TEST=Get Chameleon ready with the latest stable chameleon(d) package. Plug in RN42 dongle to OTG port (standard test setup). Run existing tests that use Chameleon's Bluetooth HID emulation, specifically the non-flaky non-stress ones, and watch them pass: $ test_that --board ${BOARD} --args "chameleon_host=${CHAMELEON_IP}" \ ${DUT_IP} bluetooth_AdapterPairing.mouse \ bluetooth_AdapterPairing.mouse.pairing_twice \ bluetooth_AdapterHIDReports.mouse (This only tests that existing functionality is not broken.) Change-Id: Idf2184e8a58afd8464eaa0f580a97c3321cf095a Reviewed-on: https://chromium-review.googlesource.com/602900 Commit-Ready: Alexander Lent <alent@google.com> Tested-by: Alexander Lent <alent@google.com> Reviewed-by: Shyh-In Hwang <josephsih@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.