Lines Matching full:runcmd
17 type runCmd func(...string) ([]byte, error)
19 func compileFile(runcmd runCmd, longname string, flags []string) (out []byte, err error) {
27 return runcmd(cmd...)
30 …func compileInDir(runcmd runCmd, dir string, flags []string, names ...string) (out []byte, err err…
40 @@ -217,15 +211,24 @@ func compileInDir(runcmd runCmd, dir string, flags []string, names ...string)…
42 func linkFile(runcmd runCmd, goname string) (err error) {
49 - _, err = runcmd(cmd...)
51 + _, err = runcmd(findGoCmd(), "tool", "link", "-w", "-o", "a.exe", "-L", ".", pfile)
56 +func goRun(runcmd runCmd, flags []string, goname string, args ...string) (out []byte, err error) {
65 + return runcmd(cmd...)
84 - _, err := runcmd("go", "build", goGcflags(), "-o", "a.exe", long)
85 + _, err := runcmd(findGoCmd(), "build", goGcflags(), "-o", "a.exe", long)
114 _, err = runcmd(cmd...)
121 _, err = runcmd(cmd...)
147 out, err = runcmd(append(cmd, args...)...)
165 - if _, err := runcmd("go", "tool", "compile", "-o", pkg, t.goFileName()); err != nil {
172 - if _, err := runcmd(cmd...); err != nil {
176 - out, err = runcmd(append([]string{exe}, args...)...)
184 - out, err = runcmd(append(cmd, args...)...)
186 + out, err := goRun(runcmd, flags, t.goFileName(), args...)
199 - out, err := runcmd(append(cmd, args...)...)
200 + out, err := goRun(runcmd, nil, t.goFileName(), args...)
213 - out, err = runcmd(cmd...)
214 + out, err = goRun(runcmd, nil, tfile)
227 - out, err := runcmd(append(cmd, args...)...)
228 + out, err := goRun(runcmd, nil, t.goFileName(), args...)
240 out, err = runcmd(cmdline...)