1
0
mirror of https://github.com/golang/go synced 2024-11-23 05:00:07 -07:00
go/misc/cgo/testcarchive
Elias Naur 0a82ed5d7c 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>
2016-03-24 23:43:27 +00:00
..
src runtime: preserve signal stack when calling Go on C thread 2016-01-06 23:11:42 +00:00
carchive_test.go misc/cgo/testcarchive: re-enable c-archive test on iOS and Android 2016-03-24 23:43:27 +00:00
main2.c misc/cgo/testcarchive,testcshared: deflake tests 2016-01-07 01:32:29 +00:00
main3.c misc/cgo/testcarchive,testcshared: deflake tests 2016-01-07 01:32:29 +00:00
main4.c misc/cgo/testcarchive,testcshared: deflake tests 2016-01-07 01:32:29 +00:00
main5.c runtime: improve last ditch signal forwarding for Unix libraries 2016-03-24 19:34:17 +00:00
main.c runtime: for c-archive/c-shared, install signal handlers synchronously 2016-01-09 00:58:38 +00:00