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 مسار الملف الثنائي أو قيمة فارغة في حال عدم العثور عليه

عمليات الطرح
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
IOException

طُرق محمية

doesRunBinaryGenerateTestResults

protected boolean doesRunBinaryGenerateTestResults ()

المرتجعات
boolean

getAllTestCommands

protected Map<String, String> getAllTestCommands ()

تحويل mBinaryPaths إلى mTestCommands للحفاظ على الاتساق

المرتجعات
Map<String, String> خريطةLinkedHashMap<string, string=""> من testCommands.

</string,>