Lines Matching defs:goTest
318 type goTest struct { struct
319 timeout time.Duration // If non-zero, override timeout
320 short bool // If true, force -short
321 tags []string // Build tags
322 race bool // Force -race
323 bench bool // Run benchmarks (briefly), not tests.
324 runTests string // Regexp of tests to run
325 cpu string // If non-empty, -cpu flag
327 gcflags string // If non-empty, build with -gcflags=all=X
328 ldflags string // If non-empty, build with -ldflags=X
329 buildmode string // If non-empty, -buildmode flag
331 env []string // Environment variables to add, as KEY=VAL. KEY= unsets a variable
333 runOnHost bool // When cross-compiling, run this test on the host instead of guest
338 variant string
342 omitVariant bool
346 pkgs []string // Multiple packages to test
347 pkg string // A single package to test
349 testFlags []string // Additional flags accepted by this test
355 func (opts *goTest) bgCommand(t *tester, stdout, stderr io.Writer) (cmd *exec.Cmd, flush func()) {
404 func (opts *goTest) run(t *tester) error {
418 …ts *goTest) buildArgs(t *tester) (build, run, pkgs, testFlags []string, setupCmd func(*exec.Cmd)) {
509 func (opts *goTest) packages() []string {
521 func (opts *goTest) printSkip(t *tester, msg string) {