diff options
author | 2024-11-06 14:23:36 -0800 | |
---|---|---|
committer | 2024-11-07 10:23:35 -0800 | |
commit | 10adf35cbfd2ba5e7ed68bdaccc65edc705153f7 (patch) | |
tree | ded3a878df57da23efa2853eb36c87299e3df48b /ci | |
parent | 974f1f3150e3147bede1377d829e04a073819e07 (diff) |
Add build rule for build_test_suites
Add a build rule to build build_test_suites.
Test: m build_test_suites
Bug: 372973116
Change-Id: I790cc723a7e4deba2309b24cdcf6a058f8a77254
Diffstat (limited to 'ci')
-rw-r--r-- | ci/Android.bp | 28 | ||||
-rw-r--r-- | ci/build_test_suites.py | 4 |
2 files changed, 28 insertions, 4 deletions
diff --git a/ci/Android.bp b/ci/Android.bp index 0dfbd376d9..2407c51e53 100644 --- a/ci/Android.bp +++ b/ci/Android.bp @@ -25,7 +25,7 @@ python_test_host { "build_test_suites_test.py", ], libs: [ - "build_test_suites", + "build_test_suites_lib", "pyfakefs", "ci_test_lib", ], @@ -56,7 +56,7 @@ python_test_host { "build_test_suites_local_test.py", ], libs: [ - "build_test_suites", + "build_test_suites_lib", "pyfakefs", "ci_test_lib", ], @@ -79,7 +79,7 @@ python_test_host { "optimized_targets_test.py", ], libs: [ - "build_test_suites", + "build_test_suites_lib", "pyfakefs", ], test_options: { @@ -95,7 +95,7 @@ python_test_host { }, } -python_library_host { +python_binary_host { name: "build_test_suites", srcs: [ "build_test_suites.py", @@ -104,6 +104,26 @@ python_library_host { "build_context.py", "test_discovery_agent.py", ], + main: "build_test_suites.py", + version: { + py3: { + embedded_launcher: true, + }, + }, + libs: [ + "soong-metrics-proto-py", + ], +} + +python_library_host { + name: "build_test_suites_lib", + srcs: [ + "build_test_suites.py", + "optimized_targets.py", + "test_mapping_module_retriever.py", + "build_context.py", + "test_discovery_agent.py", + ], } python_library_host { diff --git a/ci/build_test_suites.py b/ci/build_test_suites.py index b8c4a385e0..9e56a20a79 100644 --- a/ci/build_test_suites.py +++ b/ci/build_test_suites.py @@ -209,3 +209,7 @@ def main(argv): filename=log_file, ) sys.exit(build_test_suites(argv)) + + +if __name__ == '__main__': + main(sys.argv[1:]) |