Lines Matching +full:git +full:- +full:tool
1 diff --git test/fixedbugs/bug302.go test/fixedbugs/bug302.go
3 --- test/fixedbugs/bug302.go
5 @@ -1,5 +1,5 @@
7 -// run
11 // Use of this source code is governed by a BSD-style
12 @@ -8,16 +8,28 @@
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"))
39 + run(goCmd(), "tool", "pack", "grc", "pp.a", "p.o")
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
48 @@ -1,5 +1,5 @@
50 -// run
54 // Use of this source code is governed by a BSD-style
55 @@ -10,21 +10,40 @@
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")
92 - run("." + string(filepath.Separator) + "a.exe")
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")
96 + run(goCmd(), "tool", "link", "-o", "a.exe", "main.o")
101 diff --git test/fixedbugs/bug429_run.go test/fixedbugs/bug429_run.go
103 --- test/fixedbugs/bug429_run.go
105 @@ -1,5 +1,5 @@
107 -// run
111 // Use of this source code is governed by a BSD-style
112 @@ -10,6 +10,7 @@
120 @@ -17,8 +18,27 @@ import (
136 + cmd = append(cmd, "-exec", "go_"+*target+"_exec")
143 - cmd := exec.Command("go", "run", filepath.Join("fixedbugs", "bug429.go"))
149 diff --git test/fixedbugs/issue10607.go test/fixedbugs/issue10607.go
151 --- test/fixedbugs/issue10607.go
153 @@ -1,5 +1,5 @@
155 -// run
159 // Use of this source code is governed by a BSD-style
160 @@ -11,19 +11,39 @@
183 + cmd = append(cmd, "-exec", "go_"+*target+"_exec")
190 - test("internal")
197 - out, err := exec.Command("go", "run", "-ldflags", "-B=0x12345678 -linkmode="+linkmode, filepath.J…
198 + out, err := goRun("-ldflags", "-B=0x12345678 -linkmode="+linkmode, filepath.Join("fixedbugs", "is…
202 diff --git test/fixedbugs/issue11771.go test/fixedbugs/issue11771.go
204 --- test/fixedbugs/issue11771.go
206 @@ -1,5 +1,5 @@
208 -// run
212 // Use of this source code is governed by a BSD-style
213 @@ -11,6 +11,7 @@ package main
221 @@ -19,8 +20,17 @@ import (
239 @@ -52,7 +62,7 @@ func x() {
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
252 @@ -1,4 +1,4 @@
253 -// run
257 // Use of this source code is governed by a BSD-style
258 @@ -7,6 +7,7 @@
266 @@ -15,7 +16,17 @@ import (
284 @@ -23,7 +34,7 @@ func main() {
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
297 @@ -1,5 +1,5 @@
299 -// run
303 // Use of this source code is governed by a BSD-style
304 @@ -10,12 +10,32 @@
325 + cmd = append(cmd, "-exec", "go_"+*target+"_exec")
332 - out, err := exec.Command("go", "run", "fixedbugs/issue9862.go").CombinedOutput()
338 diff --git test/linkmain_run.go test/linkmain_run.go
340 --- test/linkmain_run.go
342 @@ -1,5 +1,5 @@
344 -// run
348 // Use of this source code is governed by a BSD-style
349 @@ -10,12 +10,22 @@
372 @@ -51,16 +61,18 @@ func runFail(cmdline string) {
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")
385 + run(goCmd() + " tool link -o linkmain.exe linkmain.o")
386 + run(goCmd() + " tool link -o linkmain.exe linkmain.a")
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")
395 + runFail(goCmd() + " tool link -o linkmain.exe linkmain1.o")
396 + runFail(goCmd() + " tool link -o linkmain.exe linkmain1.a")
399 diff --git test/linkobj.go test/linkobj.go
401 --- test/linkobj.go
403 @@ -1,5 +1,5 @@
405 -// run
409 // Use of this source code is governed by a BSD-style
410 @@ -10,6 +10,7 @@
418 @@ -18,9 +19,27 @@ import (
443 dir, err := ioutil.TempDir("", "go-test-linkobj-")
446 @@ -37,28 +56,28 @@ func main() {
450 -
458 -
466 -
474 -
479 @@ -76,9 +95,9 @@ func main() {
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 + run(goCmd(), "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p1."+o, "-linkobj", "p1.…
487 + run(goCmd(), "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p2."+o, "-linkobj", "p2.…
488 + run(goCmd(), "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p3."+o, "-linkobj", "p3.…
492 @@ -86,13 +105,13 @@ func main() {
496 - out := runFail("go", "tool", "link", "p2."+o)
497 + out := runFail(goCmd(), "tool", "link", "p2."+o)
502 - run("go", "tool", "link", "-L", ".", "-o", "a.out.exe", "p3."+o)
503 - out = run("./a.out.exe")
504 + run(goCmd(), "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
513 @@ -1,5 +1,5 @@
515 -// run
519 // Use of this source code is governed by a BSD-style
520 @@ -11,20 +11,40 @@ package main
543 + cmd = append(cmd, "-exec", "go_"+*target+"_exec")
557 - cmd := exec.Command("go", "run", "-ldflags=-X main.tbd"+sep+"hello -X main.overwrite"+sep+"trumpe…
558 + cmd := goRun("-ldflags=-X main.tbd"+sep+"hello -X main.overwrite"+sep+"trumped -X main.nosuchsymb…
562 @@ -44,7 +64,7 @@ func test(sep string) {
566 - cmd = exec.Command("go", "run", "-ldflags=-X main.tbd", "linkx.go")
567 + cmd = goRun("-ldflags=-X main.tbd", "linkx.go")
570 fmt.Println("-X linker flag should not accept keys without values")
571 @@ -52,7 +72,7 @@ func test(sep string) {
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")
579 fmt.Println("-X linker flag should not overwrite non-strings")
580 diff --git test/nosplit.go test/nosplit.go
582 --- test/nosplit.go
584 @@ -1,5 +1,5 @@
586 -// run
590 // Use of this source code is governed by a BSD-style
591 @@ -9,6 +9,7 @@ package main
599 @@ -21,6 +22,24 @@ import (
624 @@ -194,12 +213,13 @@ var (
628 - goarch := os.Getenv("GOARCH")
632 - goarch = runtime.GOARCH
636 - version, err := exec.Command("go", "tool", "compile", "-V").Output()
637 + version, err := exec.Command(goCmd(), "tool", "compile", "-V").Output()
640 fmt.Printf("running go tool compile -V: %v\n", err)
641 @@ -345,7 +365,7 @@ TestCases:
645 - cmd := exec.Command("go", "build")
650 diff --git test/run.go test/run.go
652 --- test/run.go
654 @@ -246,6 +246,16 @@ func goRun(runcmd runCmd, flags []string, goname string, args ...string) (out …
662 + cmd = append(cmd, "-target", *target)
671 @@ -505,7 +515,7 @@ func (t *test) run() {
675 - case "compile", "compiledir", "build", "builddir", "buildrundir", "run", "buildrun", "runoutput",…
680 @@ -894,6 +904,17 @@ func (t *test) run() {
691 + if strings.Replace(string(out), "\r\n", "\n", -1) != t.expectedOutput() {
698 diff --git test/sinit_run.go test/sinit_run.go
700 --- test/sinit_run.go
702 @@ -1,5 +1,5 @@
704 -// run
708 // Use of this source code is governed by a BSD-style
709 @@ -11,11 +11,21 @@ package main
729 cmd := exec.Command("go", "tool", "compile", "-S", "sinit.go")