()
| 898 | } |
| 899 | |
| 900 | func 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. |
| 913 | func buildTestBinaryMulti(pkgs []string) error { |
no test coverage detected