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


Program do uruchamiania modułów testowych KUnit na urządzeniu.

Podsumowanie

Pola

public static final String KUNIT_DEBUGFS_PATH

public static final String KUNIT_RESULTS_FMT

Konstruktory publiczne

KUnitModuleTest()

Metody publiczne

String findBinary(String binary)

Wyszukaj plik binarny, aby móc go uruchomić.

boolean getCollectTestsOnly()
void run(TestInformation testInfo, ITestInvocationListener listener)

Uruchamia testy i przekazuje wyniki do odbiorcy.

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

Uruchamia plik binarny w podanej ścieżce.

Metody chronione

boolean doesRunBinaryGenerateTestResults()
Map<String, String> getAllTestCommands()

Konwertuje mBinaryPaths na mTestCommands, aby zachować spójność.

Pola

KUNIT_DEBUGFS_PATH

public static final String KUNIT_DEBUGFS_PATH

KUNIT_RESULTS_FMT

public static final String KUNIT_RESULTS_FMT

Konstruktory publiczne

KUnitModuleTest

public KUnitModuleTest ()

Metody publiczne

findBinary

public String findBinary (String binary)

Wyszukaj plik binarny, aby móc go uruchomić.

Parametry
binary String: ścieżka pliku binarnego lub po prostu jego nazwa.

Zwraca
String Ścieżka do pliku binarnego lub wartość null, jeśli nie został znaleziony.

Zgłasza
DeviceNotAvailableException

getCollectTestsOnly

public boolean getCollectTestsOnly ()

Zwraca
boolean

run

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Uruchamia testy i przekazuje wyniki do odbiorcy.

Parametry
testInfo TestInformation: obiekt TestInformation zawierający przydatne informacje do uruchamiania testów.

listener ITestInvocationListener: odbiorca wyników testu.ITestInvocationListener

Zgłasza
DeviceNotAvailableException

runBinary

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

Uruchamia plik binarny w podanej ścieżce.

Parametry
modulePath String: ścieżka pliku binarnego.

listener ITestInvocationListener: odbiorca, do którego mają być przekazywane wyniki.

description TestDescription: test w toku.

Zgłasza
DeviceNotAvailableException
IOException

Metody chronione

doesRunBinaryGenerateTestResults

protected boolean doesRunBinaryGenerateTestResults ()

Zwraca
boolean

getAllTestCommands

protected Map<String, String> getAllTestCommands ()

Konwertuje mBinaryPaths na mTestCommands, aby zachować spójność.

Zwraca
Map<String, String> Mapa LinkedHashMap<string, string=""> testCommands.

</string,>