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 INSMOD_COMMAND_FMT

public static final String KUNIT_DEBUGFS_PATH

public static final String KUNIT_RESULTS_FMT

public static final String RMMOD_COMMAND_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 เพื่อความสอดคล้อง

ช่อง

INSMOD_COMMAND_FMT

public static final String INSMOD_COMMAND_FMT

KUNIT_DEBUGFS_PATH

public static final String KUNIT_DEBUGFS_PATH

KUNIT_RESULTS_FMT

public static final String KUNIT_RESULTS_FMT

RMMOD_COMMAND_FMT

public static final String RMMOD_COMMAND_FMT

ตัวสร้างแบบสาธารณะ

KUnitModuleTest

public KUnitModuleTest ()

เมธอดสาธารณะ

findBinary

public String findBinary (String binary)

ค้นหาไบนารีเพื่อเรียกใช้

พารามิเตอร์
binary String: เส้นทางของไฟล์ไบนารีหรือชื่อไฟล์ไบนารี

คิกรีเทิร์น
String เส้นทางไปยังไบนารี หรือค่าว่างหากไม่พบ

โยน
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

protected  getAllTestCommands ()

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

คิกรีเทิร์น
MapERROR(/LinkedHashMap)<string, string=""> ของ testCommands

</string,>