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)
--- /dev/null
+[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() {}
\ No newline at end of file