PythonBinaryHostTest

public class PythonBinaryHostTest
extends Object implements IRemoteTest, ITestFilterReceiver

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


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

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

摘要

嵌套类

class PythonBinaryHostTest.PythonForwarder

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

常量

String ANDROID_SERIAL_VAR

String LD_LIBRARY_PATH

公共构造函数

PythonBinaryHostTest()

公共方法

void addAllExcludeFilters( filters)

添加了要排除的测试的过滤条件的 ERROR(/Set)

void addAllIncludeFilters( filters)

添加了要包含的测试的过滤条件 ERROR(/Set)

void addExcludeFilter(String filter)

添加了要排除的测试的过滤条件。

void addIncludeFilter(String filter)

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

void clearExcludeFilters()

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

void clearIncludeFilters()

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

getExcludeFilters()

返回排除过滤条件的当前 ERROR(/Set)

getIncludeFilters()

返回包含过滤器的当前 ERROR(/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 ( filters)

添加了要排除的测试的过滤条件的 ERROR(/Set)

参数
filters

addAllIncludeFilters

public void addAllIncludeFilters ( filters)

添加了要包含的测试的过滤条件 ERROR(/Set)

参数
filters

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

返回排除过滤条件的当前 ERROR(/Set)

返回

getIncludeFilters

public  getIncludeFilters ()

返回包含过滤器的当前 ERROR(/Set)

返回

得分

public final void run (TestInformation testInfo, 
                ITestInvocationListener listener)

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

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

listener ITestInvocationListener:测试结果的 ITestInvocationListener

抛出
DeviceNotAvailableException