add rules to start cuttlefish device and execute the test executable

The rules is copied from atest codebase:
tools/asuite/atest/bazel/resources/rules directory. Atest's RBE code
will be cleaned up and Atest will reuse code from this repository.

Test: b test  //packages/modules/adb:adbd_test  --test_output=streamed --//build/bazel_common_rules/rules/remote_device:build_id=10773279 --config=remote_avd --test_timeout=300 --verbose_failures --config=bes_metrics --remote_instance_name=projects/pesto-device-test-experimental/instances/default_instance (together with https://r.android.com/2745273)
Bug: 294922473
Change-Id: Ib1bce33dceeeaa5b170b4fd07df34e21b8b81579
8 files changed
tree: 8327cebbb94a41aa5d6d649f16b0d1b88ee12500
  1. dist/
  2. docs/
  3. exec/
  4. rules/
  5. test_mappings/
  6. workspace/
  7. OWNERS
  8. README.md
README.md

Bazel Common Rules

This directory contains common Bazel rules and tools shared between the Platform and Kernel builds.

For platform-specific rules, place them in the platform checkout's //build/bazel/rules directory.

For kernel-specific rules, place them in kernel checkout's //build/kleaf directory.