Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SkipWithoutQEMU ¶ added in v0.4.0
SkipWithoutQEMU skips the test when the QEMU environment variables are not set. This is already called by QEMUTest(), so use if some expensive operations are performed before calling QEMUTest().
Types ¶
type Options ¶
type Options struct { // Env is the Go environment to use to build u-root. Env *golang.Environ // Name is the test's name. // // If name is left empty, the calling function's function name will be // used as determined by runtime.Caller Name string // Go commands to include in the initramfs for the VM. // // If left empty, all u-root commands will be included. Cmds []string // Uinit are commands to execute after init. // // If populated, a uinit.go will be generated from these. Uinit []string // Files are files to include in the VMs initramfs. Files []string // TmpDir is a temporary directory for build artifacts. TmpDir string // LogFile is a file to log serial output to. // // The default is serial/$Name.log LogFile string // Logger logs build statements. Logger logger.Logger // Timeout is the timeout for expect statements. Timeout time.Duration // Network is the VM's network. Network *qemu.Network // Extra environment variables to set when building (used by u-bmc) ExtraBuildEnv []string // Serial Output SerialOutput io.WriteCloser }
Options are integration test options.
type TestLineWriter ¶ added in v0.5.0
type TestLineWriter struct { TB testing.TB Prefix string // contains filtered or unexported fields }
TestLineWriter is an io.Writer that waits for a full line of prints before logging to TB.
func (*TestLineWriter) Close ¶ added in v0.5.0
func (tsw *TestLineWriter) Close() error
Click to show internal directories.
Click to hide internal directories.