Mapping Android platform(AOSP) test types to Soong module types?

Viewed 158

I'm having some hard time to understand the different Android platform test types and how it maps to the Soong module types

Basically from what I read:

  • Local unit test (which runs on local JVM)
  • Instrumented tests (exercise framework APIs via application framework or invoke Android system services via raw binder/IPC proxies directly)
  • Native tests (interact directly with HALs via low-level APIs or IPC interfaces)

How do the Soong test module tests map to the different types of Android platform tests? E.g.

  • cc_test, java_test, python_test etc. seem to be used in many native test modules?
  • cc_test_host, java_test_host, python_test_host, I assume those are for local unit tests?
  • android_test, android_test_helper_app, etc.
0 Answers
Related