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"
33 - run("go", "tool", "compile", filepath.Join("fixedbugs", "bug302.dir", "p.go"))
34 - run("go", "tool", "pack", "grc", "pp.a", "p.o")
35 - run("go", "tool", "compile", "-I", ".", filepath.Join("fixedbugs", "bug302.dir", "main.go"))
37 + run(goCmd(), "tool", "compile", filepath.Join("fixedbugs", "bug302.dir", "p.go"))
39 + run(goCmd(), "tool", "compile", "-I", ".", filepath.Join("fixedbugs", "bug302.dir", "main.go"))
43 diff --git test/fixedbugs/bug369.go test/fixedbugs/bug369.go
45 --- test/fixedbugs/bug369.go
46 +++ test/fixedbugs/bug369.go
52 // Copyright 2011 The Go Authors. All rights reserved.
71 + return "go"
87 - run("go", "tool", "compile", "-N", "-o", "slow.o", "pkg.go")
88 - run("go", "tool", "compile", "-o", "fast.o", "pkg.go")
89 - run("go", "tool", "compile", "-o", "main.o", "main.go")
90 - run("go", "tool", "link", "-o", "a.exe", "main.o")
92 + run(goCmd(), "tool", "compile", "-N", "-o", "slow.o", "pkg.go")
93 + run(goCmd(), "tool", "compile", "-o", "fast.o", "pkg.go")
94 + run(goCmd(), "tool", "compile", "-o", "main.o", "main.go")
100 diff --git test/fixedbugs/bug429_run.go test/fixedbugs/bug429_run.go
102 --- test/fixedbugs/bug429_run.go
103 +++ test/fixedbugs/bug429_run.go
109 // Copyright 2014 The Go Authors. All rights reserved.
129 + return "go"
142 - cmd := exec.Command("go", "run", filepath.Join("fixedbugs", "bug429.go"))
144 + cmd := goRun(filepath.Join("fixedbugs", "bug429.go"))
148 diff --git test/fixedbugs/issue10607.go test/fixedbugs/issue10607.go
150 --- test/fixedbugs/issue10607.go
151 +++ test/fixedbugs/issue10607.go
157 // Copyright 2015 The Go Authors. All rights reserved.
176 + return "go"
196 …ut, err := exec.Command("go", "run", "-ldflags", "-B=0x12345678 -linkmode="+linkmode, filepath.Joi…
197 …"-B=0x12345678 -linkmode="+linkmode, filepath.Join("fixedbugs", "issue10607a.go")).CombinedOutput()
201 diff --git test/fixedbugs/issue11771.go test/fixedbugs/issue11771.go
203 --- test/fixedbugs/issue11771.go
204 +++ test/fixedbugs/issue11771.go
210 // Copyright 2015 The Go Authors. All rights reserved.
230 + return "go"
242 - cmd := exec.Command("go", "tool", "compile", "x.go")
243 + cmd := exec.Command(goCmd(), "tool", "compile", "x.go")
247 diff --git test/fixedbugs/issue9355.go test/fixedbugs/issue9355.go
249 --- test/fixedbugs/issue9355.go
250 +++ test/fixedbugs/issue9355.go
255 // Copyright 2014 The Go Authors. All rights reserved.
275 + return "go"
287 - out := run("go", "tool", "compile", "-S", "a.go")
288 + out := run(goCmd(), "tool", "compile", "-S", "a.go")
292 diff --git test/fixedbugs/issue9862_run.go test/fixedbugs/issue9862_run.go
294 --- test/fixedbugs/issue9862_run.go
295 +++ test/fixedbugs/issue9862_run.go
301 // Copyright 2015 The Go Authors. All rights reserved.
318 + return "go"
331 - out, err := exec.Command("go", "run", "fixedbugs/issue9862.go").CombinedOutput()
333 + out, err := goRun("fixedbugs/issue9862.go").CombinedOutput()
336 println("go run issue9862.go succeeded, should have failed\n", outstr)
337 diff --git test/linkmain_run.go test/linkmain_run.go
339 --- test/linkmain_run.go
340 +++ test/linkmain_run.go
346 // Copyright 2014 The Go Authors. All rights reserved.
365 + return "go"
376 // helloworld.go is package main
377 - run("go tool compile -o linkmain.o helloworld.go")
378 - run("go tool compile -pack -o linkmain.a helloworld.go")
379 - run("go tool link -o linkmain.exe linkmain.o")
380 - run("go tool link -o linkmain.exe linkmain.a")
381 + run(goCmd() + " tool compile -o linkmain.o helloworld.go")
382 + run(goCmd() + " tool compile -pack -o linkmain.a helloworld.go")
386 // linkmain.go is not
387 - run("go tool compile -o linkmain1.o linkmain.go")
388 - run("go tool compile -pack -o linkmain1.a linkmain.go")
389 - runFail("go tool link -o linkmain.exe linkmain1.o")
390 - runFail("go tool link -o linkmain.exe linkmain1.a")
391 + run(goCmd() + " tool compile -o linkmain1.o linkmain.go")
392 + run(goCmd() + " tool compile -pack -o linkmain1.a linkmain.go")
397 diff --git test/linkobj.go test/linkobj.go
399 --- test/linkobj.go
400 +++ test/linkobj.go
406 // Copyright 2016 The Go Authors. All rights reserved.
426 + return "go"
441 dir, err := ioutil.TempDir("", "go-test-linkobj-")
446 writeFile("p1.go", `
454 writeFile("p2.go", `
468 writeFile("p3.go", `
481 - run("go", "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p1."+o, "-linkobj", "p1.lo"…
482 - run("go", "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p2."+o, "-linkobj", "p2.lo"…
483 - run("go", "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p3."+o, "-linkobj", "p3.lo"…
484 …), "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p1."+o, "-linkobj", "p1.lo", "p1.go")
485 …), "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p2."+o, "-linkobj", "p2.lo", "p2.go")
486 …), "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p3."+o, "-linkobj", "p3.lo", "p3.go")
494 - out := runFail("go", "tool", "link", "p2."+o)
500 - run("go", "tool", "link", "-L", ".", "-o", "a.out.exe", "p3."+o)
507 diff --git test/linkx_run.go test/linkx_run.go
509 --- test/linkx_run.go
510 +++ test/linkx_run.go
516 // Copyright 2014 The Go Authors. All rights reserved.
535 + return "go"
555 …xec.Command("go", "run", "-ldflags=-X main.tbd"+sep+"hello -X main.overwrite"+sep+"trumped -X main…
556 ….tbd"+sep+"hello -X main.overwrite"+sep+"trumped -X main.nosuchsymbol"+sep+"neverseen", "linkx.go")
564 - cmd = exec.Command("go", "run", "-ldflags=-X main.tbd", "linkx.go")
565 + cmd = goRun("-ldflags=-X main.tbd", "linkx.go")
573 - cmd = exec.Command("go", "run", "-ldflags=-X main.b=false -X main.x=42", "linkx.go")
574 + cmd = goRun("-ldflags=-X main.b=false -X main.x=42", "linkx.go")
578 diff --git test/nosplit.go test/nosplit.go
580 --- test/nosplit.go
581 +++ test/nosplit.go
587 // Copyright 2014 The Go Authors. All rights reserved.
607 + return "go"
614 + fmt.Printf("running go env GOARCH: %v\n", err)
634 - version, err := exec.Command("go", "tool", "compile", "-V").Output()
638 fmt.Printf("running go tool compile -V: %v\n", err)
643 - cmd := exec.Command("go", "build")
648 diff --git test/run.go test/run.go
650 --- test/run.go
651 +++ test/run.go
696 diff --git test/sinit_run.go test/sinit_run.go
698 --- test/sinit_run.go
699 +++ test/sinit_run.go
705 // Copyright 2014 The Go Authors. All rights reserved.
723 + return "go"
727 - cmd := exec.Command("go", "tool", "compile", "-S", "sinit.go")
729 + cmd := exec.Command(goCmd(), "tool", "compile", "-S", "sinit.go")