PythonBinaryHostTest

public class PythonBinaryHostTest
extends Object implements IRemoteTest, IDeviceTest, IBuildReceiver, IInvocationContextReceiver

java.lang.Object
   ↳ com.android.tradefed.testtype.python.PythonBinaryHostTest


Host test meant to run a python binary file from the Android Build system (Soong)

Summary

Nested classes

class PythonBinaryHostTest.PythonForwarder

Result forwarder to replace the run name by the binary name. 

Constants

String PYTHON_OUTPUT

Public constructors

PythonBinaryHostTest()

Public methods

ITestDevice getDevice()

Get the device under test.

void run(ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

void setBuild(IBuildInfo buildInfo)
void setDevice(ITestDevice device)

Inject the device under test.

void setInvocationContext(IInvocationContext invocationContext)

Constants

PYTHON_OUTPUT

protected static final String PYTHON_OUTPUT

Constant Value: "python-output"

Public constructors

PythonBinaryHostTest

public PythonBinaryHostTest ()

Public methods

getDevice

public ITestDevice getDevice ()

Get the device under test.

Returns
ITestDevice the ITestDevice

run

public void run (ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Parameters
listener ITestInvocationListener: the ITestInvocationListener of test results

Throws
DeviceNotAvailableException

setBuild

public void setBuild (IBuildInfo buildInfo)

Parameters
buildInfo IBuildInfo

setDevice

public void setDevice (ITestDevice device)

Inject the device under test.

Parameters
device ITestDevice: the ITestDevice to use

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

Parameters
invocationContext IInvocationContext