Lines Matching full:go
1 diff --git test/fixedbugs/bug302.go test/fixedbugs/bug302.go
3 --- test/fixedbugs/bug302.go
4 +++ test/fixedbugs/bug302.go
10 // Copyright 2010 The Go Authors. All rights reserved.
29 + return "go"
34 - run("go", "tool", "compile", filepath.Join("fixedbugs", "bug302.dir", "p.go"))
35 - run("go", "tool", "pack", "grc", "pp.a", "p.o")
36 - run("go", "tool", "compile", "-I", ".", filepath.Join("fixedbugs", "bug302.dir", "main.go"))
38 + run(goCmd(), "tool", "compile", filepath.Join("fixedbugs", "bug302.dir", "p.go"))
40 + run(goCmd(), "tool", "compile", "-I", ".", filepath.Join("fixedbugs", "bug302.dir", "main.go"))
44 diff --git test/fixedbugs/bug369.go test/fixedbugs/bug369.go
46 --- test/fixedbugs/bug369.go
47 +++ test/fixedbugs/bug369.go
53 // Copyright 2011 The Go Authors. All rights reserved.
72 + return "go"
88 - run("go", "tool", "compile", "-N", "-o", "slow.o", "pkg.go")
89 - run("go", "tool", "compile", "-o", "fast.o", "pkg.go")
90 - run("go", "tool", "compile", "-o", "main.o", "main.go")
91 - run("go", "tool", "link", "-o", "a.exe", "main.o")
93 + run(goCmd(), "tool", "compile", "-N", "-o", "slow.o", "pkg.go")
94 + run(goCmd(), "tool", "compile", "-o", "fast.o", "pkg.go")
95 + run(goCmd(), "tool", "compile", "-o", "main.o", "main.go")
101 diff --git test/fixedbugs/bug429_run.go test/fixedbugs/bug429_run.go
103 --- test/fixedbugs/bug429_run.go
104 +++ test/fixedbugs/bug429_run.go
110 // Copyright 2014 The Go Authors. All rights reserved.
130 + return "go"
143 - cmd := exec.Command("go", "run", filepath.Join("fixedbugs", "bug429.go"))
145 + cmd := goRun(filepath.Join("fixedbugs", "bug429.go"))
149 diff --git test/fixedbugs/issue10607.go test/fixedbugs/issue10607.go
151 --- test/fixedbugs/issue10607.go
152 +++ test/fixedbugs/issue10607.go
158 // Copyright 2015 The Go Authors. All rights reserved.
177 + return "go"
197 …ut, err := exec.Command("go", "run", "-ldflags", "-B=0x12345678 -linkmode="+linkmode, filepath.Joi…
198 …"-B=0x12345678 -linkmode="+linkmode, filepath.Join("fixedbugs", "issue10607a.go")).CombinedOutput()
202 diff --git test/fixedbugs/issue11771.go test/fixedbugs/issue11771.go
204 --- test/fixedbugs/issue11771.go
205 +++ test/fixedbugs/issue11771.go
211 // Copyright 2015 The Go Authors. All rights reserved.
231 + return "go"
243 - cmd := exec.Command("go", "tool", "compile", "x.go")
244 + cmd := exec.Command(goCmd(), "tool", "compile", "x.go")
248 diff --git test/fixedbugs/issue9355.go test/fixedbugs/issue9355.go
250 --- test/fixedbugs/issue9355.go
251 +++ test/fixedbugs/issue9355.go
256 // Copyright 2014 The Go Authors. All rights reserved.
276 + return "go"
288 - out := run("go", "tool", "compile", "-S", "a.go")
289 + out := run(goCmd(), "tool", "compile", "-S", "a.go")
293 diff --git test/fixedbugs/issue9862_run.go test/fixedbugs/issue9862_run.go
295 --- test/fixedbugs/issue9862_run.go
296 +++ test/fixedbugs/issue9862_run.go
302 // Copyright 2015 The Go Authors. All rights reserved.
319 + return "go"
332 - out, err := exec.Command("go", "run", "fixedbugs/issue9862.go").CombinedOutput()
334 + out, err := goRun("fixedbugs/issue9862.go").CombinedOutput()
337 println("go run issue9862.go succeeded, should have failed\n", outstr)
338 diff --git test/linkmain_run.go test/linkmain_run.go
340 --- test/linkmain_run.go
341 +++ test/linkmain_run.go
347 // Copyright 2014 The Go Authors. All rights reserved.
366 + return "go"
378 // helloworld.go is package main
379 - run("go tool compile -o linkmain.o helloworld.go")
380 - run("go tool compile -pack -o linkmain.a helloworld.go")
381 - run("go tool link -o linkmain.exe linkmain.o")
382 - run("go tool link -o linkmain.exe linkmain.a")
383 + run(goCmd() + " tool compile -o linkmain.o helloworld.go")
384 + run(goCmd() + " tool compile -pack -o linkmain.a helloworld.go")
388 // linkmain.go is not
389 - run("go tool compile -o linkmain1.o linkmain.go")
390 - run("go tool compile -pack -o linkmain1.a linkmain.go")
391 - runFail("go tool link -o linkmain.exe linkmain1.o")
392 - runFail("go tool link -o linkmain.exe linkmain1.a")
393 + run(goCmd() + " tool compile -o linkmain1.o linkmain.go")
394 + run(goCmd() + " tool compile -pack -o linkmain1.a linkmain.go")
399 diff --git test/linkobj.go test/linkobj.go
401 --- test/linkobj.go
402 +++ test/linkobj.go
408 // Copyright 2016 The Go Authors. All rights reserved.
428 + return "go"
443 dir, err := ioutil.TempDir("", "go-test-linkobj-")
448 writeFile("p1.go", `
456 writeFile("p2.go", `
470 writeFile("p3.go", `
483 - run("go", "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p1."+o, "-linkobj", "p1.lo"…
484 - run("go", "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p2."+o, "-linkobj", "p2.lo"…
485 - run("go", "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p3."+o, "-linkobj", "p3.lo"…
486 …), "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p1."+o, "-linkobj", "p1.lo", "p1.go")
487 …), "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p2."+o, "-linkobj", "p2.lo", "p2.go")
488 …), "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p3."+o, "-linkobj", "p3.lo", "p3.go")
496 - out := runFail("go", "tool", "link", "p2."+o)
502 - run("go", "tool", "link", "-L", ".", "-o", "a.out.exe", "p3."+o)
509 diff --git test/linkx_run.go test/linkx_run.go
511 --- test/linkx_run.go
512 +++ test/linkx_run.go
518 // Copyright 2014 The Go Authors. All rights reserved.
537 + return "go"
557 …xec.Command("go", "run", "-ldflags=-X main.tbd"+sep+"hello -X main.overwrite"+sep+"trumped -X main…
558 ….tbd"+sep+"hello -X main.overwrite"+sep+"trumped -X main.nosuchsymbol"+sep+"neverseen", "linkx.go")
566 - cmd = exec.Command("go", "run", "-ldflags=-X main.tbd", "linkx.go")
567 + cmd = goRun("-ldflags=-X main.tbd", "linkx.go")
575 - cmd = exec.Command("go", "run", "-ldflags=-X main.b=false -X main.x=42", "linkx.go")
576 + cmd = goRun("-ldflags=-X main.b=false -X main.x=42", "linkx.go")
580 diff --git test/nosplit.go test/nosplit.go
582 --- test/nosplit.go
583 +++ test/nosplit.go
589 // Copyright 2014 The Go Authors. All rights reserved.
609 + return "go"
616 + fmt.Printf("running go env GOARCH: %v\n", err)
636 - version, err := exec.Command("go", "tool", "compile", "-V").Output()
640 fmt.Printf("running go tool compile -V: %v\n", err)
645 - cmd := exec.Command("go", "build")
650 diff --git test/run.go test/run.go
652 --- test/run.go
653 +++ test/run.go
696 // Run Go file and write its output into temporary Go file.
697 // Run generated Go file and verify its output.
698 diff --git test/sinit_run.go test/sinit_run.go
700 --- test/sinit_run.go
701 +++ test/sinit_run.go
707 // Copyright 2014 The Go Authors. All rights reserved.
725 + return "go"
729 cmd := exec.Command("go", "tool", "compile", "-S", "sinit.go")