]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/testcarchive: re-enable c-archive test on iOS and Android
authorElias Naur <elias.naur@gmail.com>
Thu, 24 Mar 2016 20:47:02 +0000 (21:47 +0100)
committerElias Naur <elias.naur@gmail.com>
Thu, 24 Mar 2016 23:43:27 +0000 (23:43 +0000)
commit0a82ed5d7c6db2c01a840e2a494cb6ff22a02823
treee4b4cd19a5d79cefe4742063fe68c4e1ec20745d
parent0104a31b8fbcbe52728a08867b26415d282c35d2
misc/cgo/testcarchive: re-enable c-archive test on iOS and Android

The c-archive test were recently converted from shell script to Go.
Unfortunately, it also lost the ability to target iOS and Android
that lack C compilers and require exec wrappers.

Compile the c-archive test for the host and run it with the target
GOOS/GOARCH environment. Change the test to rely on go env GOOS
and go env GOARCH instead of runtime.GOOS and runtime.GOARCH.

Fixes #8345

Change-Id: I290ace2f7e96b87c55d99492feb7d660140dcb32
Reviewed-on: https://go-review.googlesource.com/21102
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
misc/cgo/testcarchive/carchive_test.go
src/cmd/dist/test.go