e2etest

package
v0.0.0-...-bbc9ce3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSSHKeyPairFiles

func CreateSSHKeyPairFiles(base string) error

CreateSSHKeyPairFiles creates a private-public and authorized_key files. The files are written to the following locations:

{base}/.fx-ssh-path
{base}/.ssh/fuchsia_ed25519
{base}/.ssh/fuchsia_ed25519.pub
{base}/.ssh/fuchsia_authorized_keys

This simulates in-tree ssh setup.

func ExtractPackage

func ExtractPackage(tgzFile, destRoot string) error

ExtractPackage extracts a tgzFile to destRoot. For example, ExtractPackage("/root/path/to/file.tar.gz", "/new/path") will extract /root/path/to/file.tar.gz to /new/path/...

func FindDirFromDir

func FindDirFromDir(root, dirName string) string

FindDirFromDir searches the root dir and returns the first path that matches dirName.

func FindFileFromDir

func FindFileFromDir(root, fileName string) string

FindFileFromDir searches the root dir and returns the first path that matches fileName.

func GenerateFakeArgsFile

func GenerateFakeArgsFile(destFile string) error

GenerateFakeArgsFile creates a fake gn build output to destFile.

func GenerateFakeImagesJson

func GenerateFakeImagesJson(destFile string) error

GenerateFakeImagesJson creates a fake images.json build output to destFile.

func GetProcessPID

func GetProcessPID(name, vdlOut string) string

GetProcessPID parses vdlOutput textproto and finds the recorded PID for the specified name.

func GetProcessPort

func GetProcessPort(name, vdlOut string) string

GetProcessPort parses vdlOutput textproto and finds the recorded port value for the specified name.

func IsEmuRunning

func IsEmuRunning(emuPID string) bool

IsEmuRunning checks if there is a running host qemu process that matches the emuPID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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