KUnitModuleTest
public
class
KUnitModuleTest
extends ExecutableTargetTest
| java.lang.Object | |||
| ↳ | com.android.tradefed.testtype.binary.ExecutableBaseTest | ||
| ↳ | com.android.tradefed.testtype.binary.ExecutableTargetTest | ||
| ↳ | com.android.tradefed.testtype.binary.KUnitModuleTest | ||
기기에서 KUnit 테스트 모듈을 실행하기 위한 테스트 실행기입니다.
요약
필드 | |
|---|---|
public
static
final
String |
KUNIT_DEBUGFS_PATH
|
public
static
final
String |
KUNIT_RESULTS_FMT
|
공개 생성자 | |
|---|---|
KUnitModuleTest()
|
|
공개 메서드 | |
|---|---|
String
|
findBinary(String binary)
바이너리를 검색하여 실행합니다. |
boolean
|
getCollectTestsOnly()
|
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
테스트를 실행하고 리스너에 결과를 보고합니다. |
void
|
runBinary(String modulePath, ITestInvocationListener listener, TestDescription description)
지정된 경로에서 바이너리를 실제로 실행합니다. |
보호된 메서드 | |
|---|---|
boolean
|
doesRunBinaryGenerateTestResults()
|
|
getAllTestCommands()
일관성을 위해 mBinaryPaths를 mTestCommands로 변환합니다. |
필드
KUNIT_DEBUGFS_PATH
public static final String KUNIT_DEBUGFS_PATH
KUNIT_RESULTS_FMT
public static final String KUNIT_RESULTS_FMT
공개 생성자
KUnitModuleTest
public KUnitModuleTest ()
공개 메서드
findBinary
public String findBinary (String binary)
바이너리를 검색하여 실행합니다.
| 매개변수 | |
|---|---|
binary |
String: 바이너리의 경로 또는 바이너리 이름입니다. |
| 반환 값 | |
|---|---|
String |
바이너리의 경로 또는 찾을 수 없는 경우 null입니다. |
| 생성 값 | |
|---|---|
DeviceNotAvailableException |
|
getCollectTestsOnly
public boolean getCollectTestsOnly ()
| 반환 값 | |
|---|---|
boolean |
|
실행
public void run (TestInformation testInfo, ITestInvocationListener listener)
테스트를 실행하고 리스너에 결과를 보고합니다.
| 매개변수 | |
|---|---|
testInfo |
TestInformation: 테스트를 실행하는 데 유용한 정보가 포함된 TestInformation 객체입니다. |
listener |
ITestInvocationListener: 테스트 결과의 ITestInvocationListener |
| 생성 값 | |
|---|---|
DeviceNotAvailableException |
|
runBinary
public void runBinary (String modulePath,
ITestInvocationListener listener,
TestDescription description)지정된 경로에서 바이너리를 실제로 실행합니다.
| 매개변수 | |
|---|---|
modulePath |
String: 바이너리의 경로입니다. |
listener |
ITestInvocationListener: 결과를 보고할 리스너입니다. |
description |
TestDescription: 테스트가 진행 중입니다. |
| 생성 값 | |
|---|---|
DeviceNotAvailableException |
|
보호된 메서드
doesRunBinaryGenerateTestResults
protected boolean doesRunBinaryGenerateTestResults ()
| 반환 값 | |
|---|---|
boolean |
|
getAllTestCommands
protectedgetAllTestCommands ()
일관성을 위해 mBinaryPaths를 mTestCommands로 변환합니다.
| 반환 값 | |
|---|---|
|
testCommands의 MapERROR(/LinkedHashMap)<string, string=""></string,> |