Documentation ¶
Overview ¶
Package nethelper provides functionality to support test execution by handling requests from various tests coming via network in context of ARC TAST test. arc_eth0 on port 1235 is used as communication point. This helper currently supports the following commands:
- drop_caches - drops system caches, returns OK/FAILED.
- receive_payload - receives payload from client, returns OK, ACK and payload.
- get_total_memory_kb - gets total memory in KB from DUT, returns OK/FAILED and value.
Usage pattern is following:
conn, err := nethelper.Start(ctx) if err != nil { s.Fatal("Failed to start nethelper", err) } defer conn.Close(ctx)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection describes running socket server context.
func Start ¶
func Start(ctx context.Context, port int) (*Connection, error)
Start starts socket server and returns connection descriptor.
Click to show internal directories.
Click to hide internal directories.