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

โฮมรัน

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: Listener ที่ใช้รายงานผลลัพธ์

description TestDescription: อยู่ระหว่างการทดสอบ

ส่ง
DeviceNotAvailableException
IOException

วิธีการที่ได้รับการป้องกัน

doesRunBinaryGenerateTestResults

protected boolean doesRunBinaryGenerateTestResults ()

การคืนสินค้า
boolean

getAllTestCommands

protected Map<String, String> getAllTestCommands ()

แปลง mBinaryPaths เป็น mTestCommands เพื่อความสอดคล้องกัน

การคืนสินค้า
Map<String, String> MapLinkedHashMap<string, string=""> ของ testCommands

</string,>