mirror of
https://github.com/golang/go
synced 2024-11-17 13:04:54 -07:00
cmd/go: convert TestGoBuildARM to the script framework
Part of converting all tests to script framework to improve test parallelism. Updates #36320 Updates #17751 Change-Id: If1e591f28d6399a07b37ed7f4a1419bf7cd915eb Reviewed-on: https://go-review.googlesource.com/c/go/+/214425 Reviewed-by: Jay Conrod <jayconrod@google.com>
This commit is contained in:
parent
1c4e5152ae
commit
c40914b726
@ -2117,26 +2117,6 @@ func TestGoBuildGOPATHOrderBroken(t *testing.T) {
|
||||
tg.run("install", "-x", "bar")
|
||||
}
|
||||
|
||||
func TestGoBuildARM(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.Skip("skipping cross-compile in short mode")
|
||||
}
|
||||
|
||||
tg := testgo(t)
|
||||
defer tg.cleanup()
|
||||
|
||||
tg.makeTempdir()
|
||||
tg.cd(tg.path("."))
|
||||
|
||||
tg.setenv("GOARCH", "arm")
|
||||
tg.setenv("GOOS", "linux")
|
||||
tg.setenv("GOARM", "5")
|
||||
tg.tempFile("hello.go", `package main
|
||||
func main() {}`)
|
||||
tg.run("build", "hello.go")
|
||||
tg.grepStderrNot("unable to find math.a", "did not build math.a correctly")
|
||||
}
|
||||
|
||||
// For issue 14337.
|
||||
func TestParallelTest(t *testing.T) {
|
||||
tooSlow(t)
|
||||
|
13
src/cmd/go/testdata/script/build_arm.txt
vendored
Normal file
13
src/cmd/go/testdata/script/build_arm.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
[short] skip 'skipping cross-compile in short mode'
|
||||
|
||||
env GOARCH=arm
|
||||
env GOOS=linux
|
||||
env GOARM=5
|
||||
|
||||
go build hello.go
|
||||
! stderr 'unable to find math.a'
|
||||
|
||||
-- hello.go --
|
||||
package main
|
||||
|
||||
func main() {}
|
Loading…
Reference in New Issue
Block a user