Documentation
¶
Overview ¶
Package command provides a generic way for running testing commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { // Name of the command to be run, used to give information. Name string // ValidateOutput is a function used to verify the output. It must make the test fail in // case of error. ValidateOutput func(t *testing.T, output string) // StartAndStop indicates this command should first be started then stopped. // It corresponds to gadget like execsnoop which wait user to type Ctrl^C. StartAndStop bool // Cmd object is used when we want to start the command, then do // other stuff and wait for its completion or just run the command. Cmd *exec.Cmd // contains filtered or unexported fields }
func (*Command) IsStartAndStop ¶
Click to show internal directories.
Click to hide internal directories.