commit | b927bf61949e24cc364d2c1fb658662c6bd9a22f | [log] [tgz] |
---|---|---|
author | Joseph Murphy <murj@google.com> | Mon Sep 30 19:17:00 2019 -0700 |
committer | Joseph Murphy <murj@google.com> | Tue Dec 17 11:17:15 2019 -0800 |
tree | 3b718d6c6b61b614736289518d750d8adf96d486 | |
parent | 1a2c0cef50a2fa84cda7e9540d08c95fb65dc65b [diff] |
Starts the containment wrapper for host testing. This is going to take lots more changes before anything works or has proper unit tests written. However, this lays the foundation for at least the containment environment portion of our efforts to support pure host testing. Update: Now seems to work for HelloWorldHostTest, but still need to write unit tests, test with more taxing workloads, and find a way to trigger dry runs conveniently. Update #2: Flipped the handshake protocol and implemented random port assignment to allow multiple instances to run on one machine. Update #3: Extracted some of the utility functions to a namespace called "minimal" so that we can reuse those elsewhere. Update #4: Code cleanup and log forwarding from subprocess through CLog. Also adds ITestAnnotationFilterReceiver implementation. Update #5: Changed to use RunUtil in subprocess invocation and use the location of the main tradefed.jar to infer the location of tradefed-isolation.jar. Bug: b/130198687 Test: Incomplete Change-Id: Icaa3989e3d580ddabe9c3f6b4d1d40276a61bfc4
TF is a test harness used to drive Android automated testing. It runs on test hosts and monitors the connected devices, handling test scheduling & execution and device management.
Other test harnesses like Compatibility Test Suite (CTS) and Vendor Test Suite (VTS) use TF as a basis and extend it for their particular needs.
Building TF:
More information at: https://source.android.com/devices/tech/test_infra/tradefed/
See more details about Tradefed Architecture at: https://source.android.com/devices/tech/test_infra/tradefed/architecture
If you are a tests writer you should start looking in the test_framework/ component which contains everything needed to write a tests in Tradefed.