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 |
ロードフィルター
public String loadFilter (String binaryOnHost)
get フィルター メソッドを定義します。
サブクラスは、独自のフィルターを取得する方法を実装する必要があります。
パラメーター | |
---|---|
binaryOnHost | String : フィルタ ファイルのフル パス。 |
戻り値 | |
---|---|
String | フィルタ文字列。 |
走る
public void run (TestInformation testInfo, ITestInvocationListener listener)
パラメーター | |
---|---|
testInfo | TestInformation |
listener | ITestInvocationListener |
スロー | |
---|---|
DeviceNotAvailableException |