Apex target preparer can automatically retrieve pacakge name and version code from apex file.

Support installation of multiple apex files.

Test: cd tests; mma; ./run_tradefed_tests.sh (no error on
InstallApexModuleTargetPreparerTest.java)
      atest apex_e2e_tests (passed with the following test config)

<configuration description="Config for apex install/uninstall test cases">
    <option name="test-suite-tag" value="apex_e2e_tests" />
    <option name="test-suite-tag" value="apct" />
    <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/>
    <target_preparer class="com.android.tradefed.targetprep.InstallApexModuleTargetPreparer" >
         <option name="test-file-name" value="apex.test.apex" />
         <option name="test-file-name" value="apex.test.apex" />
    </target_preparer>
</configuration>

Bug: 115880045
Bug: 120048749

Change-Id: I96fbd3af1534117636a720737d53db77bb921476
3 files changed
tree: a5995543d87d770042711b3d5aea8689070b9ae4
  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/