Allow atest to run TEST_MAPPING files with host only tests.

Tests from TEST_MAPPING files are split into 2 groups, tests requires device to
run and tests only runs on host and don't require device.
Atest will run the 2 groups of tests in 2 suites and print both result summaries
at the end.

Bug: 116039282
Test: unittest, run atest with TEST_MAPPING file including host only test, e.g.,
    {
      "name": "ahat-tests",
      "host": true
    }

Change-Id: I662b926d572d97e46136d517e4adc27a35da5377
11 files changed
tree: f2cf62e20349880f285ef4b93e38c4b9f18ac823
  1. atest/
  2. proto/
  3. proto-gen/
  4. python-lib/
  5. remote/
  6. res/
  7. src/
  8. tests/
  9. util-apps/
  10. .classpath
  11. .gitignore
  12. .project
  13. Android.bp
  14. Android.mk
  15. atest_tradefed.sh
  16. CleanSpec.mk
  17. error_prone_rules.mk
  18. MANIFEST.mf
  19. OWNERS
  20. PREUPLOAD.cfg
  21. pylintrc
  22. README.md
  23. run_tf_cmd.sh
  24. script_help.sh
  25. TEST_MAPPING
  26. tradefed.sh
  27. tradefed_win.bat
  28. verify.sh
README.md

Trade Federation (TF / tradefed)

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:

  • source build/envsetup.sh
  • tapas tradefed-all
  • make -j8

More information at: https://source.android.com/devices/tech/test_infra/tradefed/