testutils

package
v1.0.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package testutils has test utility functions for h2o modules

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecOnDevice

func ExecOnDevice(ctx context.Context, adbTurbo, device, cmd string, args []string) (string, error)

ExecOnDevice runs the desired command on the device.

func GetAdbPorts

func GetAdbPorts() (string, string, string, error)

GetAdbPorts picks unused ports for the adb_port, adb_server_port and emulator_port.

func KillEmu

func KillEmu(launcher, adbServerPort, adbPort, emuPort string) error

KillEmu kills the emulator identified by adbPort.

func PickUnusedPort

func PickUnusedPort() (port int, err error)

PickUnusedPort returns the first unused port that it finds. Note that this function has an inherent race condition. Callers should bind to the port as soon as possible.

func RunfilesRoot

func RunfilesRoot() string

RunfilesRoot returns the path to the test runfiles dir

func SetupEmu

func SetupEmu(launcher, adbServerPort, adbPort, emuPort string) (string, error)

SetupEmu starts up the emulator and returns the path to where is running.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL