Loading ci/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,7 @@ python_library_host { "optimized_targets.py", "test_mapping_module_retriever.py", "build_context.py", "test_discovery_agent.py", ], } Loading ci/test_discovery_agent.py 0 → 100644 +46 −0 Original line number Diff line number Diff line # Copyright 2024, The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. class TestDiscoveryAgent: """Test discovery agent.""" _AOSP_TRADEFED_PREBUILT_JAR_RELATIVE_PATH = ( "tools/tradefederation/prebuilts/filegroups/tradefed/" ) def __init__( self, tradefed_args: list[str], test_mapping_zip_path: str, tradefed_jar_revelant_files_path: str = _AOSP_TRADEFED_PREBUILT_JAR_RELATIVE_PATH, ): self.tradefed_args = tradefed_args self.test_mapping_zip_path = test_mapping_zip_path self.tradefed_jar_relevant_files_path = tradefed_jar_revelant_files_path def discover_test_zip_regexes(self) -> list[str]: """Discover test zip regexes from TradeFed. Returns: A list of test zip regexes that TF is going to try to pull files from. """ return [] def discover_test_modules(self) -> list[str]: """Discover test modules from TradeFed. Returns: A list of test modules that TradeFed is going to execute based on the TradeFed test args. """ return [] Loading
ci/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,7 @@ python_library_host { "optimized_targets.py", "test_mapping_module_retriever.py", "build_context.py", "test_discovery_agent.py", ], } Loading
ci/test_discovery_agent.py 0 → 100644 +46 −0 Original line number Diff line number Diff line # Copyright 2024, The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. class TestDiscoveryAgent: """Test discovery agent.""" _AOSP_TRADEFED_PREBUILT_JAR_RELATIVE_PATH = ( "tools/tradefederation/prebuilts/filegroups/tradefed/" ) def __init__( self, tradefed_args: list[str], test_mapping_zip_path: str, tradefed_jar_revelant_files_path: str = _AOSP_TRADEFED_PREBUILT_JAR_RELATIVE_PATH, ): self.tradefed_args = tradefed_args self.test_mapping_zip_path = test_mapping_zip_path self.tradefed_jar_relevant_files_path = tradefed_jar_revelant_files_path def discover_test_zip_regexes(self) -> list[str]: """Discover test zip regexes from TradeFed. Returns: A list of test zip regexes that TF is going to try to pull files from. """ return [] def discover_test_modules(self) -> list[str]: """Discover test modules from TradeFed. Returns: A list of test modules that TradeFed is going to execute based on the TradeFed test args. """ return []