Documentation ¶
Overview ¶
Package dut provides common definitions and utilities to be shared by DUTs.
Index ¶
Constants ¶
View Source
const ( // PosixServerPort is the port the posix server should listen on. PosixServerPort = 54321 // CtrlIface is the command switch name for passing name of the control interface. CtrlIface = "ctrl_iface" // TestIface is the command switch name for passing name of the test interface. TestIface = "test_iface" )
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run is the provided function that calls dut's Bootstrap and Cleanup methods and returns the DUT information to the parent through the pipe.
func WaitForServer ¶
WaitForServer waits for a pattern to occur in posix_server's logs.
Types ¶
type DUT ¶
type DUT interface { // Bootstrap starts a DUT and returns the collected DUTInfo and a function // for the caller to call to wait for the completion of the DUT. Bootstrap(ctx context.Context) (testbench.DUTInfo, func() error, error) // Cleanup stops the DUT and cleans up the resources being used. Cleanup() }
DUT is an interface for different platforms of DUTs.
Directories ¶
Path | Synopsis |
---|---|
Package linux provides utilities specific to bringing up linux DUTs.
|
Package linux provides utilities specific to bringing up linux DUTs. |
The native binary is used to bring up a native linux DUT.
|
The native binary is used to bring up a native linux DUT. |
The devid binary is used to get the device ID in the runsc container.
|
The devid binary is used to get the device ID in the runsc container. |
Click to show internal directories.
Click to hide internal directories.