- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,290 for ncmd (3.4 sec)
-
src/testing/helper_test.go
return } testenv.MustHaveExec(t) t.Parallel() exe, err := os.Executable() if err != nil { t.Fatal(err) } cmd := testenv.Command(t, exe, "-test.run=^TestTBHelper$") cmd = testenv.CleanCmdEnv(cmd) cmd.Env = append(cmd.Env, "GO_WANT_HELPER_PROCESS=1") out, _ := cmd.CombinedOutput() want := `--- FAIL: TestTBHelper \([^)]+\) helperfuncs_test.go:15: 0 helperfuncs_test.go:47: 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 17:24:47 UTC 2023 - 2.6K bytes - Viewed (0) -
src/internal/testenv/exec.go
} } // CleanCmdEnv will fill cmd.Env with the environment, excluding certain // variables that could modify the behavior of the Go tools such as // GODEBUG and GOTRACEBACK. // // If the caller wants to set cmd.Dir, set it before calling this function, // so PWD will be set correctly in the environment. func CleanCmdEnv(cmd *exec.Cmd) *exec.Cmd { if cmd.Env != nil { panic("environment already set") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 27 17:53:23 UTC 2023 - 7.5K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/upgrade/upgrade.go
out: out, } cmd := &cobra.Command{ Use: "upgrade", Short: "Upgrade your cluster smoothly to a newer version with this command", Run: cmdutil.SubCmdRun(), } cmd.AddCommand(newCmdApply(flags)) cmd.AddCommand(newCmdPlan(flags)) cmd.AddCommand(newCmdDiff(out)) cmd.AddCommand(newCmdNode(out)) return cmd }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 26 01:18:29 UTC 2022 - 2.9K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue18146.go
} } var cmds []*exec.Cmd defer func() { for _, cmd := range cmds { cmd.Process.Kill() } }() args := append(append([]string(nil), os.Args[1:]...), "-test.run=^Test18146$") for n := attempts; n > 0; n-- { cmd := exec.Command(os.Args[0], args...) cmd.Env = append(os.Environ(), "test18146=exec") buf := bytes.NewBuffer(nil) cmd.Stdout = buf cmd.Stderr = buf
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:32 UTC 2023 - 2.8K bytes - Viewed (0) -
src/crypto/purego_test.go
// such as TinyGo. See also the "crypto/...:purego" test in cmd/dist, which // ensures the packages build correctly. func TestPureGoTag(t *testing.T) { cmd := exec.Command(testenv.GoToolPath(t), "list", "-e", "crypto/...", "math/big") cmd.Env = append(cmd.Env, "GOOS=linux") cmd.Stderr = os.Stderr out, err := cmd.Output() if err != nil { log.Fatalf("loading package list: %v\n%s", err, out) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 1.8K bytes - Viewed (0) -
src/runtime/runtime-gdb_unix_test.go
} defer r.Close() // Start the test binary. cmd = testenv.Command(t, "./a.exe", "-pipe-fd=3") cmd.Dir = dir cmd.ExtraFiles = []*os.File{w} var output bytes.Buffer cmd.Stdout = &output // for test logging cmd.Stderr = &output if err := cmd.Start(); err != nil { t.Fatalf("error starting test binary: %v", err) } w.Close() pid := cmd.Process.Pid // Wait for child to be ready.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 17 19:05:30 UTC 2024 - 9.4K bytes - Viewed (0) -
src/cmd/go/chdir_test.go
if err != nil { t.Fatal(err) } var walk func(string, *base.Command) walk = func(name string, cmd *base.Command) { if len(cmd.Commands) > 0 { for _, sub := range cmd.Commands { walk(name+" "+sub.Name(), sub) } return } if !cmd.Runnable() { return } if cmd.CustomFlags { if !strings.Contains(string(script), "# "+name+"\n") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 03 12:16:35 UTC 2022 - 1.2K bytes - Viewed (0) -
src/runtime/signal_windows_test.go
// build go dll cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", dllfile, "-buildmode", "c-shared", "testdata/testwintls/main.go") out, err := testenv.CleanCmdEnv(cmd).CombinedOutput() if err != nil { t.Fatalf("failed to build go library: %s\n%s", err, out) } // build c program cmd = testenv.Command(t, cc, "-o", exefile, "testdata/testwintls/main.c") testenv.CleanCmdEnv(cmd)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 08:26:52 UTC 2023 - 9K bytes - Viewed (0) -
src/cmd/go/testdata/script/vendor_gopath_issue11409.txt
} func main() { gopath := changeVolume(os.Args[1], strings.ToLower) dir := changeVolume(os.Args[2], strings.ToUpper) cmd := exec.Command("go", "run", "hello.go") cmd.Dir = dir cmd.Env = append(os.Environ(), "GOPATH="+gopath) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr if err := cmd.Run(); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } } -- vend/hello/hello.go -- package main
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 982 bytes - Viewed (0) -
src/cmd/go/testdata/vcstest/README
tests of cmd/go and its subpackages. They are written in a dialect of the same script language as in cmd/go/testdata/script, and the outputs are hosted by the server in cmd/go/internal/vcweb. To see the conditions and commands available for these scripts, run: go test cmd/go/internal/vcweb -v --run=TestHelp To host these scripts in a standalone server, run:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 25 13:00:34 UTC 2022 - 487 bytes - Viewed (0)