RustTestBase
public
abstract
class
RustTestBase
extends Object
implements
IAbiReceiver,
IConfigurationReceiver,
IRemoteTest,
ITestFilterReceiver
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.rust.RustTestBase |
RustBinaryHostTest 和 RustBinaryTest 的基类
摘要
嵌套类 | |
|---|---|
class |
RustTestBase.EnvPair
|
class |
RustTestBase.Invocation
|
字段 | |
|---|---|
protected
long |
mTestTimeout
|
公共构造函数 | |
|---|---|
RustTestBase()
|
|
公共方法 | |
|---|---|
void
|
addAllExcludeFilters(Set<String> filters)
添加用于指定要排除哪些测试的过滤条件 |
void
|
addAllIncludeFilters(Set<String> filters)
添加用于指定要包含哪些测试的过滤条件 |
void
|
addExcludeFilter(String filter)
添加用于指定要排除哪些测试的过滤条件。 |
void
|
addIncludeFilter(String filter)
添加用于指定要包含哪些测试的过滤条件。 |
void
|
clearExcludeFilters()
删除当前跟踪的所有排除过滤条件。 |
void
|
clearIncludeFilters()
删除当前跟踪的所有包含过滤条件。 |
IAbi
|
getAbi()
|
Set<String>
|
getExcludeFilters()
返回当前的排除过滤条件 |
Set<String>
|
getIncludeFilters()
返回当前的包含过滤条件 |
void
|
setAbi(IAbi abi)
|
void
|
setConfiguration(IConfiguration configuration)
注入正在使用的 |
受保护的方法 | |
|---|---|
void
|
collectTestLines(String[] testList, Set<String> foundTests)
在 testList 中查找测试用例名称,并将其添加到 foundTests 中。 |
List<RustTestBase.Invocation>
|
generateInvocations(File target)
|
IConfiguration
|
getConfiguration()
返回测试配置。 |
字段
mTestTimeout
protected long mTestTimeout
公共构造函数
RustTestBase
public RustTestBase ()
公共方法
addAllExcludeFilters
public void addAllExcludeFilters (Set<String> filters)
添加用于指定要排除哪些测试的过滤条件Set。
| 参数 | |
|---|---|
filters |
Set |
addAllIncludeFilters
public void addAllIncludeFilters (Set<String> filters)
添加用于指定要包含哪些测试的过滤条件Set。
| 参数 | |
|---|---|
filters |
Set |
addExcludeFilter
public void addExcludeFilter (String filter)
添加用于指定要排除哪些测试的过滤条件。
| 参数 | |
|---|---|
filter |
String |
addIncludeFilter
public void addIncludeFilter (String filter)
添加用于指定要包含哪些测试的过滤条件。
| 参数 | |
|---|---|
filter |
String |
clearExcludeFilters
public void clearExcludeFilters ()
删除当前跟踪的所有排除过滤条件。
clearIncludeFilters
public void clearIncludeFilters ()
删除当前跟踪的所有包含过滤条件。
setConfiguration
public void setConfiguration (IConfiguration configuration)
注入正在使用的 IConfiguration。
| 参数 | |
|---|---|
configuration |
IConfiguration |
受保护的方法
collectTestLines
protected void collectTestLines (String[] testList,
Set<String> foundTests)在 testList 中查找测试用例名称,并将其添加到 foundTests 中。
| 参数 | |
|---|---|
testList |
String |
foundTests |
Set |
generateInvocations
protected List<RustTestBase.Invocation> generateInvocations (File target)
| 参数 | |
|---|---|
target |
File |
| 返回 | |
|---|---|
List<RustTestBase.Invocation> |
|
getConfiguration
protected IConfiguration getConfiguration ()
返回测试配置。
| 返回 | |
|---|---|
IConfiguration |
IConfiguration |