Atest: Unit tests prebuilt release in Python2.

Test: $ source build/envsetup.sh ; lunch
      $ make clean atest atest_unittests
      ### source code run ###
      $ atest hello_world_test
      $ atest -v FrameworksServicesTests CtsJankDeviceTestCases
      $ atest RunBluetoothRoboTests
      $ atest ScreenDecorWindowTests
      $ atest FrameworksServicesTests:ScreenDecorWindowTests#testFlagChange,testRemoval
      $ atest ahat-tests --host

      ### binary run ###
      $ m atest
      and run above the same test types.

      ### unittests ###
      $ tools/tradefederation/core/atest/atest_run_unittests.py
      $ atest -mbt atest_unittests

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