Ensure that uiautomator apks are present in the DUT for phonehub tests

Currently, the phonehub tests assume that the required uiautomator APKs
are present in the DUT under
/usr/local/share/android-uiautomator-server.
This is true for any DUT running a ChromeOS image with ARC, but for
devices that are in extended support, such as coral devices, ARC is
removed.

Adding these APKs as an external data file, and updating the fixture
for phonehub so it checks whether the expected directory exists, and
pushes the APKs in case it does not exist.

BUG=b:415810119
TEST=Ran tast.phonehub.* tests in coral device

Change-Id: Ife9826827a1be0ab4ef0c7c25c31cd4423a3aea6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/6558642
Reviewed-by: Hyung Tae Kim <hyungtaekim@chromium.org>
Commit-Queue: Joaquin Marquez <joaquinmarquez@google.com>
Reviewed-by: Daniel Classon <dclasson@google.com>
Tast-Review: Daniel Classon <dclasson@google.com>
Tested-by: Joaquin Marquez <joaquinmarquez@google.com>
Reviewed-by: Jon Mann <jonmann@chromium.org>
(cherry picked from commit be512a7b9b1797d819696cfe03b366f390d6aa94)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/6592740
Release-Owner: Luis Menezes <lmenezes@google.com>
Reviewed-by: Michael Hansen <hansenmichael@google.com>
3 files changed
tree: 697f610524a5ba13667f57673df4b78955ae479d
  1. android/
  2. helpers/
  3. src/
  4. tools/
  5. vars/
  6. .gitignore
  7. DIR_METADATA
  8. LICENSE
  9. OWNERS
  10. OWNERS.tast
  11. PRESUBMIT.cfg
  12. PRESUBMIT.py
  13. README.md
  14. unblocked_terms.txt
README.md

Tast (tests)

This repository contains integration tests that are run by Tast.

Directory structure

  • helpers/ - Source code for binaries executed by tests.
    • local/ - Helpers for local tests that are compiled and installed to /usr/local/libexec/tast/helpers/local/cros by the tast-local-helpers-cros package.
  • src/go.chromium.org/tast-tests/cros/
    • local/ - Code related to local (i.e. on-device or “client”) tests.
      • bundles/ - Local test bundles.
        • cros/ - The “cros” local test bundle, containing standard ChromeOS tests. Tests are packaged by category.
      • ... - Packages used only by local tests.
    • remote/ - Code related to remote (i.e. off-device or “server”) tests.
      • bundles/ - Remote test bundles.
        • cros/ - The “cros” remote test bundle, containing standard ChromeOS tests. Tests are packaged by category.
      • ... - Packages used only by remote tests.

Shared code, the main tast executable, the local_test_runner and remote_test_runner executables responsible for running bundles, and documentation are located in the tast repository.

GoDoc