自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
ValidateSuiteConfigHelper
public
class
ValidateSuiteConfigHelper
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.testtype.suite.ValidateSuiteConfigHelper
|
此类有助于验证为套件加载的 IConfiguration
是否符合预期要求:- 无 build 提供程序 - 无结果报告程序
摘要
公共方法
validateConfig
public static void validateConfig (IConfiguration config)
检查配置是否已正确构建,以便在套件中运行。
validateConfigFile
public static void validateConfigFile (File configFile)
检查模块配置文件是否有效 - 不含模板或包含项
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# ValidateSuiteConfigHelper\n=========================\n\n\n`\npublic\n\n\nclass\nValidateSuiteConfigHelper\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|---------------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.testtype.suite.ValidateSuiteConfigHelper |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThis class will help validating that the [IConfiguration](../../../../../../../reference/tradefed/com/android/tradefed/config/IConfiguration.html) loaded for the suite are meeting\nthe expected requirements: - No Build providers - No Result reporters\n\nSummary\n-------\n\n| ### Public methods ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static void` | ` `[validateConfig](../../../../../../../reference/tradefed/com/android/tradefed/testtype/suite/ValidateSuiteConfigHelper.html#validateConfig(com.android.tradefed.config.IConfiguration))`(`[IConfiguration](../../../../../../../reference/tradefed/com/android/tradefed/config/IConfiguration.html)` config) ` Check that a configuration is properly built to run in a suite. |\n| ` static void` | ` `[validateConfigFile](../../../../../../../reference/tradefed/com/android/tradefed/testtype/suite/ValidateSuiteConfigHelper.html#validateConfigFile(File))`(File configFile) ` Check that a module config file is valid - no templates or includes |\n\nPublic methods\n--------------\n\n### validateConfig\n\n```\npublic static void validateConfig (IConfiguration config)\n```\n\nCheck that a configuration is properly built to run in a suite.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `config` | `IConfiguration`: a [IConfiguration](../../../../../../../reference/tradefed/com/android/tradefed/config/IConfiguration.html) to be checked if valide for suite. \u003cbr /\u003e |\n\n### validateConfigFile\n\n```\npublic static void validateConfigFile (File configFile)\n```\n\nCheck that a module config file is valid - no templates or includes\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|--------------------------------------------------------------------------------------------|\n| `configFile` | `File`: a config [ERROR(/File)](../../../../../../../) to be validated for a suite. \u003cbr /\u003e |"]]