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

‫constructors ציבוריים

KUnitModuleTest()

‫methods ציבוריים

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

‫constructors ציבוריים

KUnitModuleTest

public KUnitModuleTest ()

‫methods ציבוריים

findBinary

public String findBinary (String binary)

מחפשים את הקובץ הבינארי כדי להריץ אותו.

פרמטרים
binary String: הנתיב של הקובץ הבינארי או פשוט השם של הקובץ הבינארי.

החזרות
String הנתיב לקובץ הבינארי, או null אם הוא לא נמצא.

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException

getCollectTestsOnly

public boolean getCollectTestsOnly ()

החזרות
boolean

ראן

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

מריץ את הבדיקות ומדווח על התוצאה למאזין.

פרמטרים
testInfo TestInformation: אובייקט TestInformation שמכיל מידע שימושי להרצת בדיקות.

listener ITestInvocationListener: ITestInvocationListener תוצאות הבדיקה

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException

runBinary

public void runBinary (String modulePath, 
                ITestInvocationListener listener, 
                TestDescription description)

להריץ בפועל את הקובץ הבינארי בנתיב שצוין.

פרמטרים
modulePath String: הנתיב של הקובץ הבינארי.

listener ITestInvocationListener: מאזין שאליו מדווחים את התוצאות.

description TestDescription: הבדיקה שמתבצעת.

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException
IOException

שיטות מוגנות

doesRunBinaryGenerateTestResults

protected boolean doesRunBinaryGenerateTestResults ()

החזרות
boolean

getAllTestCommands

protected Map<String, String> getAllTestCommands ()

כדי לשמור על עקביות, צריך להמיר את mBinaryPaths ל-mTestCommands.

החזרות
Map<String, String> ‫MapLinkedHashMap<string, string=""> של testCommands.

</string,>