HostGTest
public
class
HostGTest
extends GTestBase
implements
IBuildReceiver
java.lang.Object | ||
↳ | com.android.tradefed.testtype.GTestBase | |
↳ | com.android.tradefed.testtype.HostGTest |
A Test that runs a native test package.
Summary
Public constructors | |
---|---|
HostGTest()
|
Public methods | |
---|---|
CommandResult
|
executeHostCommand(String cmd, long timeoutMs)
|
CommandResult
|
executeHostCommand(String cmd)
|
String
|
loadFilter(String binaryOnHost)
Define get filter method. |
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
|
void
|
setBuild(IBuildInfo buildInfo)
|
Public constructors
HostGTest
public HostGTest ()
Public methods
executeHostCommand
public CommandResult executeHostCommand (String cmd, long timeoutMs)
Parameters | |
---|---|
cmd |
String : command that want to execute in host |
timeoutMs |
long : timeout for command in milliseconds |
Returns | |
---|---|
CommandResult |
the CommandResult of command |
executeHostCommand
public CommandResult executeHostCommand (String cmd)
Parameters | |
---|---|
cmd |
String : command that want to execute in host |
Returns | |
---|---|
CommandResult |
the CommandResult of command |
loadFilter
public String loadFilter (String binaryOnHost)
Define get filter method.
Sub class must implement how to get it's own filter.
Parameters | |
---|---|
binaryOnHost |
String : the full path of the filter file. |
Returns | |
---|---|
String |
filter string. |
run
public void run (TestInformation testInfo, ITestInvocationListener listener)
Parameters | |
---|---|
testInfo |
TestInformation |
listener |
ITestInvocationListener |
Throws | |
---|---|
DeviceNotAvailableException |