PythonBinaryHostTest

public class PythonBinaryHostTest
extends Object implements IRemoteTest, ITestFilterReceiver

java.lang.Object
   ↳ com.android.tradefed.testtype.python.PythonBinaryHostTest


旨在从 Android 构建系统 (Soong) 运行 Python 二进制文件的主机测试

测试运行程序支持包含过滤条件和排除过滤条件。请注意,排除过滤器的运作方式是忽略测试结果,而不是跳过实际测试。exclude-filter 中指定的测试仍会执行。

摘要

嵌套类

class PythonBinaryHostTest.PythonForwarder

结果转发器,用于将运行名称替换为二进制名称。 

常量

String ANDROID_SERIAL_VAR

String LD_LIBRARY_PATH

公共构造函数

PythonBinaryHostTest()

公共方法

void addAllExcludeFilters(Set<String> filters)

添加用于指定要排除哪些测试的过滤条件Set

void addAllIncludeFilters(Set<String> filters)

添加用于指定要包含哪些测试的过滤条件Set

void addExcludeFilter(String filter)

添加用于指定要排除哪些测试的过滤条件。

void addIncludeFilter(String filter)

添加用于指定要包含哪些测试的过滤条件。

void clearExcludeFilters()

删除当前跟踪的所有排除过滤条件。

void clearIncludeFilters()

删除当前跟踪的所有包含过滤条件。

Set<String> getExcludeFilters()

返回当前的排除过滤条件Set

Set<String> getIncludeFilters()

返回当前的包含过滤条件Set

final void run(TestInformation testInfo, ITestInvocationListener listener)

运行测试,并将结果报告给监听器。

常量

ANDROID_SERIAL_VAR

protected static final String ANDROID_SERIAL_VAR

常量值: "ANDROID_SERIAL"

LD_LIBRARY_PATH

protected static final String LD_LIBRARY_PATH

常量值: "LD_LIBRARY_PATH"

公共构造函数

PythonBinaryHostTest

public PythonBinaryHostTest ()

公共方法

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 ()

删除当前跟踪的所有包含过滤条件。

getExcludeFilters

public Set<String> getExcludeFilters ()

返回当前的排除过滤条件Set

返回
Set<String>

getIncludeFilters

public Set<String> getIncludeFilters ()

返回当前的包含过滤条件Set

返回
Set<String>

run

public final void run (TestInformation testInfo, 
                ITestInvocationListener listener)

运行测试,并将结果报告给监听器。

参数
testInfo TestInformation:包含用于运行测试的实用信息的 TestInformation 对象。

listener ITestInvocationListener:测试结果的 ITestInvocationListener

抛出
DeviceNotAvailableException