ATest: include more information for perf test.

    Add perf infomation when atest running benchmark test.
    Atest only shows the testing result of PASSED or FAILED when running
    a test.
    [1/15] libhwbinder_benchmark#BM_sendVec_binderize/4: PASSED (10ms)
    It should also show the perf information when running a benchmark
    test.
    e.g.
    [1/15] libhwbinder_benchmark#BM_sendVec_binderize/4: PASSED (12ms)
    cpu_time: 13522.3(ns) real_time: 29091.5(ns) iterations: 5422

Bug: 131716955
Test: m atest ; atest-dev libhwbinder_benchmark
Change-Id: I0e57c2d31e296853a944e6ed684a68f324aed618
6 files changed
tree: 1a0422199d9cdbc1c0eeb9a7e65a50f20e049e1b
  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. TEST_MAPPING_README
  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/