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()
Map<String, String> 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

run

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
IOException

보호된 메서드

doesRunBinaryGenerateTestResults

protected boolean doesRunBinaryGenerateTestResults ()

반환
boolean

getAllTestCommands

protected Map<String, String> getAllTestCommands ()

일관성을 위해 mBinaryPaths를 mTestCommands로 변환합니다.

반환
Map<String, String> testCommands의 MapLinkedHashMap<string, string="">입니다.

</string,>