mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.link] cmd/link: run more tests in parallel
Change-Id: I4062fd89f234b4ca5386b74584e1363c05e82e84 Reviewed-on: https://go-review.googlesource.com/c/go/+/241177 Run-TryBot: Cherry Zhang <cherryyz@google.com> Reviewed-by: Jeremy Faller <jeremy@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
130ede0d9e
commit
041d8850a1
5 changed files with 31 additions and 0 deletions
|
|
@ -119,6 +119,8 @@ func TestIssue28429(t *testing.T) {
|
|||
func TestUnresolved(t *testing.T) {
|
||||
testenv.MustHaveGoBuild(t)
|
||||
|
||||
t.Parallel()
|
||||
|
||||
tmpdir, err := ioutil.TempDir("", "unresolved-")
|
||||
if err != nil {
|
||||
t.Fatalf("failed to create temp dir: %v", err)
|
||||
|
|
@ -185,6 +187,8 @@ func TestIssue33979(t *testing.T) {
|
|||
t.Skipf("Skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
|
||||
}
|
||||
|
||||
t.Parallel()
|
||||
|
||||
tmpdir, err := ioutil.TempDir("", "unresolved-")
|
||||
if err != nil {
|
||||
t.Fatalf("failed to create temp dir: %v", err)
|
||||
|
|
@ -274,6 +278,8 @@ func TestBuildForTvOS(t *testing.T) {
|
|||
t.Skipf("error running xcrun, required for iOS cross build: %v", err)
|
||||
}
|
||||
|
||||
t.Parallel()
|
||||
|
||||
sdkPath, err := exec.Command("xcrun", "--sdk", "appletvos", "--show-sdk-path").Output()
|
||||
if err != nil {
|
||||
t.Skip("failed to locate appletvos SDK, skipping")
|
||||
|
|
@ -324,6 +330,8 @@ func main() { println(X) }
|
|||
func TestXFlag(t *testing.T) {
|
||||
testenv.MustHaveGoBuild(t)
|
||||
|
||||
t.Parallel()
|
||||
|
||||
tmpdir, err := ioutil.TempDir("", "TestXFlag")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
@ -350,6 +358,8 @@ func main() { }
|
|||
func TestMacOSVersion(t *testing.T) {
|
||||
testenv.MustHaveGoBuild(t)
|
||||
|
||||
t.Parallel()
|
||||
|
||||
tmpdir, err := ioutil.TempDir("", "TestMacOSVersion")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
@ -427,6 +437,8 @@ func TestIssue34788Android386TLSSequence(t *testing.T) {
|
|||
t.Skip("skipping on non-{linux,darwin}/amd64 platform")
|
||||
}
|
||||
|
||||
t.Parallel()
|
||||
|
||||
tmpdir, err := ioutil.TempDir("", "TestIssue34788Android386TLSSequence")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
@ -487,6 +499,8 @@ func TestStrictDup(t *testing.T) {
|
|||
// Check that -strictdups flag works.
|
||||
testenv.MustHaveGoBuild(t)
|
||||
|
||||
t.Parallel()
|
||||
|
||||
tmpdir, err := ioutil.TempDir("", "TestStrictDup")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
@ -571,6 +585,8 @@ func TestFuncAlign(t *testing.T) {
|
|||
}
|
||||
testenv.MustHaveGoBuild(t)
|
||||
|
||||
t.Parallel()
|
||||
|
||||
tmpdir, err := ioutil.TempDir("", "TestFuncAlign")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
@ -637,6 +653,8 @@ func TestTrampoline(t *testing.T) {
|
|||
|
||||
testenv.MustHaveGoBuild(t)
|
||||
|
||||
t.Parallel()
|
||||
|
||||
tmpdir, err := ioutil.TempDir("", "TestTrampoline")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
@ -671,6 +689,8 @@ func TestIndexMismatch(t *testing.T) {
|
|||
// manually, and try to "trick" the linker with an inconsistent object file.
|
||||
testenv.MustHaveGoBuild(t)
|
||||
|
||||
t.Parallel()
|
||||
|
||||
tmpdir, err := ioutil.TempDir("", "TestIndexMismatch")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
@ -731,6 +751,8 @@ func TestPErsrc(t *testing.T) {
|
|||
t.Skipf("this is a windows/amd64-only test")
|
||||
}
|
||||
|
||||
t.Parallel()
|
||||
|
||||
tmpdir, err := ioutil.TempDir("", "TestPErsrc")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue