• Home
  • Raw
  • Download

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,27 @@
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"))
38 + run(goCmd(), "tool", "pack", "grc", "pp.a", "p.o")
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
47 @@ -1,5 +1,5 @@
49 -// run
53 // Use of this source code is governed by a BSD-style
54 @@ -10,21 +10,40 @@
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")
91 - run("." + string(filepath.Separator) + "a.exe")
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")
95 + run(goCmd(), "tool", "link", "-o", "a.exe", "main.o")
100 diff --git test/fixedbugs/bug429_run.go test/fixedbugs/bug429_run.go
102 --- test/fixedbugs/bug429_run.go
104 @@ -1,5 +1,5 @@
106 -// run
110 // Use of this source code is governed by a BSD-style
111 @@ -10,6 +10,7 @@
119 @@ -17,8 +18,27 @@ import (
135 + cmd = append(cmd, "-exec", "go_"+*target+"_exec")
142 - cmd := exec.Command("go", "run", filepath.Join("fixedbugs", "bug429.go"))
148 diff --git test/fixedbugs/issue10607.go test/fixedbugs/issue10607.go
150 --- test/fixedbugs/issue10607.go
152 @@ -1,5 +1,5 @@
154 -// run
158 // Use of this source code is governed by a BSD-style
159 @@ -11,19 +11,39 @@
182 + cmd = append(cmd, "-exec", "go_"+*target+"_exec")
189 - test("internal")
196 - out, err := exec.Command("go", "run", "-ldflags", "-B=0x12345678 -linkmode="+linkmode, filepath.J…
197 + out, err := goRun("-ldflags", "-B=0x12345678 -linkmode="+linkmode, filepath.Join("fixedbugs", "is…
201 diff --git test/fixedbugs/issue11771.go test/fixedbugs/issue11771.go
203 --- test/fixedbugs/issue11771.go
205 @@ -1,5 +1,5 @@
207 -// run
211 // Use of this source code is governed by a BSD-style
212 @@ -11,6 +11,7 @@ package main
220 @@ -20,7 +21,17 @@ import (
238 @@ -52,7 +63,7 @@ func x() {
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
251 @@ -1,4 +1,4 @@
252 -// run
256 // Use of this source code is governed by a BSD-style
257 @@ -7,6 +7,7 @@
265 @@ -15,7 +16,17 @@ import (
283 @@ -23,7 +34,7 @@ func main() {
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
296 @@ -1,5 +1,5 @@
298 -// run
302 // Use of this source code is governed by a BSD-style
303 @@ -10,12 +10,32 @@
324 + cmd = append(cmd, "-exec", "go_"+*target+"_exec")
331 - out, err := exec.Command("go", "run", "fixedbugs/issue9862.go").CombinedOutput()
337 diff --git test/linkmain_run.go test/linkmain_run.go
339 --- test/linkmain_run.go
341 @@ -1,5 +1,5 @@
343 -// run
347 // Use of this source code is governed by a BSD-style
348 @@ -10,12 +10,22 @@
371 @@ -51,16 +61,17 @@ func runFail(cmdline string) {
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")
383 + run(goCmd() + " tool link -o linkmain.exe linkmain.o")
384 + run(goCmd() + " tool link -o linkmain.exe linkmain.a")
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")
393 + runFail(goCmd() + " tool link -o linkmain.exe linkmain1.o")
394 + runFail(goCmd() + " tool link -o linkmain.exe linkmain1.a")
397 diff --git test/linkobj.go test/linkobj.go
399 --- test/linkobj.go
401 @@ -1,5 +1,5 @@
403 -// run
407 // Use of this source code is governed by a BSD-style
408 @@ -10,6 +10,7 @@
416 @@ -18,9 +19,27 @@ import (
441 dir, err := ioutil.TempDir("", "go-test-linkobj-")
444 @@ -37,28 +56,28 @@ func main() {
448 -
456 -
464 -
472 -
477 @@ -76,9 +95,9 @@ func main() {
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 + run(goCmd(), "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p1."+o, "-linkobj", "p1.…
485 + run(goCmd(), "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p2."+o, "-linkobj", "p2.…
486 + run(goCmd(), "tool", "compile", pkg, "-D", ".", "-I", ".", "-l", "-o", "p3."+o, "-linkobj", "p3.…
490 @@ -86,13 +105,13 @@ func main() {
494 - out := runFail("go", "tool", "link", "p2."+o)
495 + out := runFail(goCmd(), "tool", "link", "p2."+o)
500 - run("go", "tool", "link", "-L", ".", "-o", "a.out.exe", "p3."+o)
501 - out = run("./a.out.exe")
502 + run(goCmd(), "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
511 @@ -1,5 +1,5 @@
513 -// run
517 // Use of this source code is governed by a BSD-style
518 @@ -11,20 +11,40 @@ package main
541 + cmd = append(cmd, "-exec", "go_"+*target+"_exec")
555 - cmd := exec.Command("go", "run", "-ldflags=-X main.tbd"+sep+"hello -X main.overwrite"+sep+"trumpe…
556 + cmd := goRun("-ldflags=-X main.tbd"+sep+"hello -X main.overwrite"+sep+"trumped -X main.nosuchsymb…
560 @@ -44,7 +64,7 @@ func test(sep string) {
564 - cmd = exec.Command("go", "run", "-ldflags=-X main.tbd", "linkx.go")
565 + cmd = goRun("-ldflags=-X main.tbd", "linkx.go")
568 fmt.Println("-X linker flag should not accept keys without values")
569 @@ -52,7 +72,7 @@ func test(sep string) {
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")
577 fmt.Println("-X linker flag should not overwrite non-strings")
578 diff --git test/nosplit.go test/nosplit.go
580 --- test/nosplit.go
582 @@ -1,5 +1,5 @@
584 -// run
588 // Use of this source code is governed by a BSD-style
589 @@ -9,6 +9,7 @@ package main
597 @@ -21,6 +22,24 @@ import (
622 @@ -194,12 +213,13 @@ var (
626 - goarch := os.Getenv("GOARCH")
630 - goarch = runtime.GOARCH
634 - version, err := exec.Command("go", "tool", "compile", "-V").Output()
635 + version, err := exec.Command(goCmd(), "tool", "compile", "-V").Output()
638 fmt.Printf("running go tool compile -V: %v\n", err)
639 @@ -345,7 +365,7 @@ TestCases:
643 - cmd := exec.Command("go", "build")
648 diff --git test/run.go test/run.go
650 --- test/run.go
652 @@ -229,6 +229,16 @@ func goRun(runcmd runCmd, flags []string, goname string, args ...string) (out …
660 + cmd = append(cmd, "-target", *target)
669 @@ -491,7 +501,7 @@ func (t *test) run() {
673 - case "compile", "compiledir", "build", "builddir", "run", "buildrun", "runoutput", "rundir":
678 @@ -816,6 +826,17 @@ func (t *test) run() {
689 + if strings.Replace(string(out), "\r\n", "\n", -1) != t.expectedOutput() {
694 rungatec <- true
696 diff --git test/sinit_run.go test/sinit_run.go
698 --- test/sinit_run.go
700 @@ -1,5 +1,5 @@
702 -// run
706 // Use of this source code is governed by a BSD-style
707 @@ -11,13 +11,24 @@ package main
727 - cmd := exec.Command("go", "tool", "compile", "-S", "sinit.go")
729 + cmd := exec.Command(goCmd(), "tool", "compile", "-S", "sinit.go")