HostGTest
public
class
HostGTest
extends GTestBase
implements
IBuildReceiver
| java.lang.Object | ||
| ↳ | com.android.tradefed.testtype.GTestBase | |
| ↳ | com.android.tradefed.testtype.HostGTest | |
用于运行原生测试软件包的测试。
摘要
公共构造函数 | |
|---|---|
HostGTest()
|
|
公共方法 | |
|---|---|
CommandResult
|
executeHostCommand(String cmd, long timeoutMs)
|
CommandResult
|
executeHostCommand(String cmd)
|
String
|
loadFilter(String binaryOnHost)
定义 get 过滤器方法。 |
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
|
void
|
setBuild(IBuildInfo buildInfo)
|
公共构造函数
HostGTest
public HostGTest ()
公共方法
executeHostCommand
public CommandResult executeHostCommand (String cmd, long timeoutMs)
| 参数 | |
|---|---|
cmd |
String:要在主机中执行的命令 |
timeoutMs |
long:命令超时(以毫秒为单位) |
| 返回 | |
|---|---|
CommandResult |
命令的 CommandResult |
executeHostCommand
public CommandResult executeHostCommand (String cmd)
| 参数 | |
|---|---|
cmd |
String:要在主机中执行的命令 |
| 返回 | |
|---|---|
CommandResult |
命令的 CommandResult |
loadFilter
public String loadFilter (String binaryOnHost)
定义 get 过滤器方法。
子类必须实现如何获取自己的过滤器。
| 参数 | |
|---|---|
binaryOnHost |
String:过滤器文件的完整路径。 |
| 返回 | |
|---|---|
String |
过滤条件字符串。 |
得分
public void run (TestInformation testInfo, ITestInvocationListener listener)
| 参数 | |
|---|---|
testInfo |
TestInformation |
listener |
ITestInvocationListener |
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|