Switch AtestRunner to base on BaseTestSuite

This change allows atest TF runner to be consistent with other TF suite.
The runner will not need a json file to store test info as an
intermediate step. It also simplify the test loading mechanism for the
base class to handle the test config parsing/loading.

Bug: 78286681
Test: unittest:
./atest/run_atest_unittests.sh
tradefed.sh run commandAndExit host -n --class com.android.tradefed.testtype.suite.AtestRunnerTest

and following atest commands, with -t/-d/-w:
atest com.android.server.wm.ScreenDecorWindowTests#testMultipleDecors
atest FrameworksServicesTests:DimmerTests#testRemoveDimImmediately,testDimAboveNoChildCreatesSurface
atest FrameworksServicesTests:DisplayContentTests FrameworksServicesTests:DimmerTests
atest FrameworksServicesTests:ScreenDecorWindowTests CtsJankDeviceTestCases:CtsDeviceJankUi
atest cts/tests/admin
atest com.android.server.wm
atest android.jank.cts
atest VtsHalCameraProviderV2_4Target

Change-Id: I9745a19a9010c008933620c0dc3a3b6385546d14
8 files changed
tree: 4c608b6040b695f796b8507bfb666e91f848e5b2
  1. atest/
  2. prod-tests/
  3. proto/
  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/