MCPcopy
hub / github.com/pingcap/tidb / generateBuildCache

Function generateBuildCache

tools/check/ut.go:900–910  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

898}
899
900func generateBuildCache() error {
901 // cd cmd/tidb-server && go test -tags intest -exec true -vet off -toolexec=go-compile-without-link
902 cmd := exec.Command("go", "test", "-tags=intest", "-exec=true", "-vet=off")
903 goCompileWithoutLink := fmt.Sprintf("-toolexec=%s", filepath.Join(workDir, "tools", "check", "go-compile-without-link.sh"))
904 cmd.Args = append(cmd.Args, goCompileWithoutLink)
905 cmd.Dir = filepath.Join(workDir, "cmd", "tidb-server")
906 if err := cmd.Run(); err != nil {
907 return withTrace(err)
908 }
909 return nil
910}
911
912// buildTestBinaryMulti is much faster than build the test packages one by one.
913func buildTestBinaryMulti(pkgs []string) error {

Callers 1

buildTestBinaryMultiFunction · 0.85

Calls 4

withTraceFunction · 0.85
CommandMethod · 0.65
JoinMethod · 0.65
RunMethod · 0.65

Tested by

no test coverage detected