Documentation ¶
Overview ¶
Package bootservertest includes common code to write smoke tests for bootserver_old.
Index ¶
- Constants
- Variables
- func AttemptPaveNoBind(t *testing.T, shouldWork bool)
- func CmdSearchLog(t *testing.T, logPatterns []LogMatch, name string, arg ...string)
- func CmdWithOutput(t *testing.T, name string, arg ...string) []byte
- func StartQemu(t *testing.T, appendCmdline []string, modeString string) *emulatortest.Instance
- func ToolPath(t *testing.T, name string) string
- type LogMatch
Constants ¶
View Source
const DefaultNodename = "swarm-donut-petri-acre"
DefaultNodename is the default nodename given to an target with the default QEMU MAC address.
Variables ¶
View Source
var TestDataDir = flag.String("test_data_dir", testDataDir(), "Path to test_data/; only used in GN build")
TestDataDir is the location to test data files.
- In "go test" mode, it's relative to this directory.
- In "fx test" mode, it's relative to the build directory (out/default).
Functions ¶
func AttemptPaveNoBind ¶
AttemptPaveNoBind attempts to initiate a pave.
func CmdSearchLog ¶
CmdSearchLog searches for a patterns in stderr.
func CmdWithOutput ¶
CmdWithOutput returns a command and returns stdout.
Types ¶
Click to show internal directories.
Click to hide internal directories.