PythonBinaryHostTest
public
class
PythonBinaryHostTest
extends Object
implements
IRemoteTest,
ITestFilterReceiver
java.lang.Object | |
↳ | com.android.tradefed.testtype.python.PythonBinaryHostTest |
Host test meant to run a python binary file from the Android Build system (Soong)
The test runner supports include-filter and exclude-filter. Note that exclude-filter works by ignoring the test result, instead of skipping the actual test. The tests specified in the exclude-filter will still be executed.
Summary
Nested classes | |
---|---|
class |
PythonBinaryHostTest.PythonForwarder
Result forwarder to replace the run name by the binary name. |
Fields | |
---|---|
protected
static
final
String |
ANDROID_SERIAL_VAR
|
protected
static
final
String |
LD_LIBRARY_PATH
|
Public constructors | |
---|---|
PythonBinaryHostTest()
|
Public methods | |
---|---|
void
|
addAllExcludeFilters(
Adds the |
void
|
addAllIncludeFilters(
Adds the |
void
|
addExcludeFilter(String filter)
Adds a filter of which tests to exclude. |
void
|
addIncludeFilter(String filter)
Adds a filter of which tests to include. |
void
|
clearExcludeFilters()
Delete all the exclude filters currently tracked. |
void
|
clearIncludeFilters()
Delete all the include filters currently tracked. |
|
getExcludeFilters()
Returns the current |
|
getIncludeFilters()
Returns the current |
final
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
Runs the tests, and reports result to the listener. |
Fields
ANDROID_SERIAL_VAR
protected static final String ANDROID_SERIAL_VAR
LD_LIBRARY_PATH
protected static final String LD_LIBRARY_PATH
Public constructors
PythonBinaryHostTest
public PythonBinaryHostTest ()
Public methods
addAllExcludeFilters
public void addAllExcludeFilters (filters)
Adds the ERROR(/Set)
of filters of which tests to exclude.
Parameters | |
---|---|
filters |
|
addAllIncludeFilters
public void addAllIncludeFilters (filters)
Adds the ERROR(/Set)
of filters of which tests to include.
Parameters | |
---|---|
filters |
|
addExcludeFilter
public void addExcludeFilter (String filter)
Adds a filter of which tests to exclude.
Parameters | |
---|---|
filter |
String |
addIncludeFilter
public void addIncludeFilter (String filter)
Adds a filter of which tests to include.
Parameters | |
---|---|
filter |
String |
clearExcludeFilters
public void clearExcludeFilters ()
Delete all the exclude filters currently tracked.
clearIncludeFilters
public void clearIncludeFilters ()
Delete all the include filters currently tracked.
getExcludeFilters
publicgetExcludeFilters ()
Returns the current ERROR(/Set)
of exclude filters.
Returns | |
---|---|
|
getIncludeFilters
publicgetIncludeFilters ()
Returns the current ERROR(/Set)
of include filters.
Returns | |
---|---|
|
run
public final void run (TestInformation testInfo, ITestInvocationListener listener)
Runs the tests, and reports result to the listener.
Parameters | |
---|---|
testInfo |
TestInformation : The TestInformation object containing useful information to run
tests. |
listener |
ITestInvocationListener : the ITestInvocationListener of test results |
Throws | |
---|---|
DeviceNotAvailableException |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-12-09 UTC.