ATest: Add cache finder.

Atest now speeds up finding tests by reading test_infos cache generated
by a new cache finder. This will benefit developers who suffer from
manually inputting selection when the test name is found in several
places, and reduce the lookup time especially for cc classes. Also
provide a -c option to clear old cache if need.

Bug: 135514460
Test: atest-dev DexFileTest
      atest-dev DexFileTest (Should not go through test selection.)
      atest-dev DexFileTest -c (Should go through test selection.)

Change-Id: Ia51e5e297b21a9b9d4066967cb8926e0db743a20
11 files changed
tree: 453b2a129da43f651fab43e5818bd217bc015572
  1. atest/
  2. clearcut_client/
  3. common_util/
  4. device_build_interfaces/
  5. global_configuration/
  6. proto/
  7. python-lib/
  8. remote/
  9. res/
  10. result_interfaces/
  11. src/
  12. tests/
  13. util-apps/
  14. .classpath
  15. .gitignore
  16. .project
  17. Android.bp
  18. Android.mk
  19. atest_tradefed.sh
  20. CleanSpec.mk
  21. error_prone_rules.mk
  22. MANIFEST.mf
  23. OWNERS
  24. PREUPLOAD.cfg
  25. pylintrc
  26. README.md
  27. run_tf_cmd.sh
  28. script_help.sh
  29. TEST_MAPPING
  30. TEST_MAPPING_README
  31. tradefed.sh
  32. tradefed_win.bat
  33. 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/

See more details about Tradefed Architecture at: https://source.android.com/devices/tech/test_infra/tradefed/architecture