Lines Matching refs:go
1 // Copyright 2015 The Go Authors. All rights reserved.
105 slurp, err := exec.Command("go", "env", "CGO_ENABLED").Output()
107 log.Fatalf("Error running go env CGO_ENABLED: %v", err)
123 cmd := exec.Command("go", "install", "-a", "-v", "std", "cmd")
133 // EXC_BAD_ACCESS and convert it into a Go panic. This is
134 // necessary for a Go program running under lldb (the way
137 cmd := exec.Command("go", "install", "-a", "-tags", "lldb", "runtime/cgo")
145 cmd := exec.Command("go", "install", "-a", "runtime/cgo")
292 cmd := exec.Command("go", args...)
326 cmd := exec.Command("go", args...)
334 // stdOutErrAreTerminals is defined in test_linux.go, to report
343 heading: "go vet std cmd",
347 t.addCmd(dt, "src/cmd/vet/all", "go", "run", "main.go", "-all")
354 // This test needs its stdout/stderr to be terminals, so we don't run it from cmd/go's tests.
359 heading: "cmd/go terminal test",
366 cmd := exec.Command("go", "test")
367 cmd.Dir = filepath.Join(os.Getenv("GOROOT"), "src/cmd/go/testdata/testterminal18153")
375 // Fast path to avoid the ~1 second of `go list std cmd` when
390 cmd := exec.Command("go", "list", "-f", format)
400 log.Fatalf("Error running go list std cmd: %v, %s", err, all)
426 cmd := t.addCmd(dt, "src", "go", "test", "-short", t.timeout(300), t.tags(), "runtime", "-cpu=1,2,4")
436 // require libgcc. This ensures that we can install a Go
438 // installed and still build Go programs (that don't use cgo).
458 t.addCmd(dt, "src", "go", "test", "-short", "-ldflags=-linkmode=internal -libgcc=none", t.tags(), pkg, t.runFlag(run))
470 t.addCmd(dt, "src", "go", "test", "reflect", "-short", "-buildmode=pie", "-ldflags=-linkmode=internal", t.timeout(60), t.tags(), t.runFlag(""))
481 t.addCmd(dt, "src", "go", "test", "sync", "-short", t.timeout(120), t.tags(), "-cpu=10", t.runFlag(""))
492 t.addCmd(dt, "misc/cgo/stdio", "go", "run", filepath.Join(os.Getenv("GOROOT"), "test/run.go"), "-", ".")
500 t.addCmd(dt, "misc/cgo/life", "go", "run", filepath.Join(os.Getenv("GOROOT"), "test/run.go"), "-", ".")
556 t.registerHostTest("testcarchive", "../misc/cgo/testcarchive", "misc/cgo/testcarchive", "carchive_test.go")
562 t.registerTest("testshared", "../misc/cgo/testshared", "go", "test")
568 t.registerTest("testasan", "../misc/cgo/testasan", "go", "run", "main.go")
577 t.registerTest("testsigfwd", "../misc/cgo/testsigfwd", "go", "run", "main.go")
584 t.registerTest("doc_progs", "../doc/progs", "time", "go", "run", "run.go")
590 t.registerTest("bench_go1", "../test/bench/go1", "go
609 t.addCmd(dt, "src", "go", "build", filepath.Join(t.goroot, "src/cmd/api/run.go"))
612 t.addCmd(dt, "src", "go", "run", filepath.Join(t.goroot, "src/cmd/api/run.go"))
812 cmd := t.dirCmd(dir, "go", "test", t.tags(), "-c", "-o", "test.test", pkg)
823 cmd := t.addCmd(dt, "misc/cgo/test", "go", "test", t.tags(), "-ldflags", "-linkmode=auto", t.runFlag(""))
827 cmd := t.addCmd(dt, "misc/cgo/test", "go", "test", "-ldflags", "-linkmode=internal", t.runFlag(""))
840 cmd := t.addCmd(dt, "misc/cgo/test", "go", "test", "-ldflags", "-linkmode=external")
842 cmd = t.addCmd(dt, "misc/cgo/test", "go", "test", "-ldflags", "-linkmode=external -s")
850 cmd := t.addCmd(dt, "misc/cgo/test", "go", "test", "-ldflags", "-linkmode=external")
853 cmd = t.addCmd(dt, "misc/cgo/testtls", "go", "test", "-ldflags", "-linkmode=auto")
856 cmd = t.addCmd(dt, "misc/cgo/testtls", "go", "test", "-ldflags", "-linkmode=external")
878 cmd = t.addCmd(dt, "misc/cgo/testtls", "go", "test", "-ldflags", `-linkmode=external -extldflags "-static -pthread"`)
882 cmd = t.addCmd(dt, "misc/cgo/nocgo", "go", "test")
885 cmd = t.addCmd(dt, "misc/cgo/nocgo", "go", "test", "-ldflags", `-linkmode=external`)
889 cmd = t.addCmd(dt, "misc/cgo/nocgo", "go", "test", "-ldflags", `-linkmode=external -extldflags "-static -pthread"`)
902 cmd = t.addCmd(dt, "misc/cgo/test", "go", "test", "-ldflags", `-linkmode=external -extldflags "-pie"`)
905 cmd = t.addCmd(dt, "misc/cgo/testtls", "go", "test", "-ldflags", `-linkmode=external -extldflags "-pie"`)
908 cmd = t.addCmd(dt, "misc/cgo/nocgo", "go", "test", "-ldflags", `-linkmode=external -extldflags "-pie"`)
931 go func(w *work) {
961 fmt.Printf("# go tool dist test -run=^%s$\n", dt.name)
986 fmt.Printf("# go tool dist test -run=^%s$\n", dt.name)
1013 output, err := exec.Command("go", "env", "CC").Output()
1015 return fmt.Errorf("Error running go env CC: %v", err)
1019 return errors.New("CC environment variable (go env CC) cannot be empty")
1021 output, err = exec.Command("go", "env", "GOGCCFLAGS").Output()
1023 return fmt.Errorf("Error running go env GOGCCFLAGS: %v", err)
1045 if err := t.dirCmd(dir, "go", "build", "-o", "main.exe", "main.go").Run(); err != nil {
1091 t.addCmd(dt, "src", "go", "test", "-race", "-i", "runtime/race", "flag", "os/exec")
1092 t.addCmd(dt, "src", "go", "test", "-race", t.runFlag("Output"), "runtime/race")
1093 t.addCmd(dt, "src", "go", "test", "-race", "-short", t.runFlag("TestParse|TestEcho|TestStdinCloseRace"), "flag", "os/exec")
1098 // t.addCmd(dt, "src", "go", "test", "-race", "-run=TestParallelTest", "cmd/go")
1101 cmd := t.addCmd(dt, "misc/cgo/test", "go", "test", "-race", "-short", t.runFlag(""))
1106 t.addCmd(dt, "src", "go", "test", "-race", "-short", "-ldflags=-linkmode=external", t.runFlag("TestParse|TestEcho|TestStdinCloseRace"), "flag", "os/exec")
1120 cmd := t.dirCmd("test", "go", "build", "-o", exe, "run.go")
1190 if !strings.HasSuffix(name, "_test.go") {