aboutsummaryrefslogtreecommitdiff
path: root/src/androidtest.bash
AgeCommit message (Collapse)Author
2019-03-01androidtest.bash: deleteElias Naur
Android now works with all.bash. Change-Id: I1087308865d2eb31f02501b5798e14d11145b185 Reviewed-on: https://go-review.googlesource.com/c/164700 Run-TryBot: Elias Naur <mail@eliasnaur.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-02-26misc/android,cmd/dist: move $GOROOT copying to the exec wrapperElias Naur
To run the standard library tests on Android, the androidtest.bash script copies GOROOT to the device. Move that logic to the android exec wrapper, thereby making androidtest.bash obsolete. Apart from making Android less special, the sharded builder infrastructure should now be able to run (emulated) Android builders and trybots without special treatment. Updates #23824 Change-Id: I41591fea9a15b38c6dcf84046ea57f1e9165eaa5 Reviewed-on: https://go-review.googlesource.com/c/163619 Run-TryBot: Elias Naur <mail@eliasnaur.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-02-26cmd/dist: build exec wrappers during bootstrapElias Naur
The androidtest.bash script encodes the additional steps to build Go and run tests on Android. In order to add sharded builders and trybots, Android needs to fit into the usual make.bash + cmd/dist test pattern. This change moves building the exec wrapper into cmd/dist bootstrap. Do the same for iOS while we're here. Updates #23824 Change-Id: I58a1b0679c3a6c92fdc7fff464b469641f1fee74 Reviewed-on: https://go-review.googlesource.com/c/163618 Run-TryBot: Elias Naur <mail@eliasnaur.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-02-24Revert "androidtest.bash: wait for device to be ready before using it"Elias Naur
This reverts commit 27b9571de800c05a41081ea80cd934e48e0a8f70. Reason for revert: broke the multi-device Android builder. And the wait logic is moving to the exec wrapper anyway. Change-Id: I3e429106bbe70b3a12286f8f229a2b558279eec4 Reviewed-on: https://go-review.googlesource.com/c/163620 Run-TryBot: Elias Naur <mail@eliasnaur.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-02-22androidtest.bash: wait for device to be ready before using itElias Naur
Updates #23824 Change-Id: I265e3f40192a0a4bf54f608d9408ba0cfef2b69c Reviewed-on: https://go-review.googlesource.com/c/163457 Run-TryBot: Elias Naur <mail@eliasnaur.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-03-07androidtest.bash: don't require GOARCH setElias Naur
The host GOARCH is most likely supported (386, amd64, arm, arm64). Change-Id: I86324b9c00f22c592ba54bda7d2ae97c86bda904 Reviewed-on: https://go-review.googlesource.com/99155 Run-TryBot: Elias Naur <elias.naur@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2018-03-06cmd/dist: default to GOARM=7 on androidElias Naur
Auto-detecting GOARM on Android makes as little sense as for nacl/arm and darwin/arm. Also update androidtest.sh to not require GOARM set. Change-Id: Id409ce1573d3c668d00fa4b7e3562ad7ece6fef5 Reviewed-on: https://go-review.googlesource.com/98875 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Elias Naur <elias.naur@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-01-20misc,src: add support for specifying adb flags to the android harnessElias Naur
Introduce GOANDROID_ADB_FLAGS for additional flags to adb invocations. With GOANDROID_ADG_FLAGS, the Android builders can distinguish between emulator and device builds. Change-Id: I11729926a523ee27f6a3795cb2cfb64a9454f0a5 Reviewed-on: https://go-review.googlesource.com/88795 Run-TryBot: Elias Naur <elias.naur@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2016-08-29androidtest.bash: use go list to get pkg dirJosh Bleecher Snyder
This will be more robust in the faces of future changes to the pkg dir layout. Change-Id: Iaf078093f02ef3a10884a19c25e2068cbbf5f36a Reviewed-on: https://go-review.googlesource.com/27929 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org>
2016-08-29androidtest.bash: fix pkg dirJosh Bleecher Snyder
CL 24930 altered the default InstallSuffix for mobile platforms. Update androidtest.bash to reflect this. This reverts CL 16151. A subsequent CL will make this more robust, but it will take more discussion and review. In the meantime, this fixes the build. Change-Id: Ia19ca2c9bab7b79c9cf24beeca64ecddaa60289c Reviewed-on: https://go-review.googlesource.com/27927 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Elias Naur <elias.naur@gmail.com> Reviewed-by: David Crawshaw <crawshaw@golang.org>
2016-08-29androidtest.bash: require GOARCHJosh Bleecher Snyder
When finding the pkg dir, androidtest.bash assumes that GOARCH is set. Require it up front. Change-Id: I143f7b59ad9d98b9c3cfb53c1d65c2d33a6acc12 Reviewed-on: https://go-review.googlesource.com/27926 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Elias Naur <elias.naur@gmail.com> Reviewed-by: David Crawshaw <crawshaw@golang.org>
2016-05-02all: make copyright headers consistent with one space after periodEmmanuel Odeke
Follows suit with https://go-review.googlesource.com/#/c/20111. Generated by running $ grep -R 'Go Authors. All' * | cut -d":" -f1 | while read F;do perl -pi -e 's/Go Authors. All/Go Authors. All/g' $F;done The code in cmd/internal/unvendor wasn't changed. Fixes #15213 Change-Id: I4f235cee0a62ec435f9e8540a1ec08ae03b1a75f Reviewed-on: https://go-review.googlesource.com/21819 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2015-10-26androidtest.bash: set GOARM=7David Crawshaw
It's the only ARM version we have ever supported on android. (Not setting it caused some builder timeouts.) Change-Id: I26061434252ff2a236bb31d95787a1c582d24b3f Reviewed-on: https://go-review.googlesource.com/16295 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2015-10-21androidtest.bash: correct the location of compiled packagesHyang-Ah Hana Kim
For android, gc builds with buildmode=pie by default, and as a result, the compiled packages are not installed in the usual pkg/$GOOS_$GOARCH pack. Copy the compiled packages in pkg/android_$GOARCH_shared into the pkg/android_$GOARCH in the test device. Change-Id: I909e4cc7095ac95ef63bdf6ddc4cb2c698f3459e Reviewed-on: https://go-review.googlesource.com/16151 Reviewed-by: David Crawshaw <crawshaw@golang.org>
2015-07-17androidtest.bash: robust cleanup in case of failure.Hyang-Ah (Hana) Kim
Change-Id: I69ed001bca4987e08b46a8288f6feae2aca6a142 Reviewed-on: https://go-review.googlesource.com/12380 Reviewed-by: David Crawshaw <crawshaw@golang.org>
2015-05-25androidtest.bash: clean up stale GOROOTDavid Crawshaw
Fixes #10806 Change-Id: I1be1f28ad60c913105d8417c42ec1b262f101f72 Reviewed-on: https://go-review.googlesource.com/10391 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-04-08androidtest.bash: copy pkg for gcimporter testsDavid Crawshaw
The tests for go/types depend on reading gc export data from the $GOROOT/pkg directory. This is the first use of these files as testdata, so previously they were not copied to the android device. Now they are used, copy them. Fixes android/arm build. Change-Id: If13bbe603ce0aff697a73a97ae9a7d6b3ea800f9 Reviewed-on: https://go-review.googlesource.com/8624 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-02-13androidtest.bash: remove use of cp --preserve.Hyang-Ah (Hana) Kim
--preserve flag is not a valid flag for some versions of cp. Change-Id: I57f5bf21cbe726057fdadcd55b040ef7ff5d7479 Reviewed-on: https://go-review.googlesource.com/4835 Reviewed-by: David Crawshaw <crawshaw@golang.org>
2015-01-15build: androidtest.bash has to use copy for files to adb-sync.Hyang-Ah Hana Kim
androidtest.bash copies some go source to the android device where the tests are going to run. It's necessary because some tests require files and resources to be present. The copy is done through adb sync. The script hoped faking the directory using symlinks to work, but it doesn't. (adb sync doesn't follow the symlinks) We need proper copy. Change-Id: If55abca4958f159859e58512b0045f23654167e3 Reviewed-on: https://go-review.googlesource.com/2827 Reviewed-by: David Crawshaw <crawshaw@golang.org>
2015-01-15build: fix typo in androidtest.bashBurcu Dogan
Change-Id: Idd72e095ad64e1a398058982422c2c5497a23ce5 Reviewed-on: https://go-review.googlesource.com/2739 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2014-09-08androidtest.bash: adjustment for move from src/pkg to srcDavid Crawshaw
LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/142740043
2014-09-08build: adjustments for move from src/pkg to srcRuss Cox
This CL adjusts code referring to src/pkg to refer to src. Immediately after submitting this CL, I will submit a change doing 'hg mv src/pkg/* src'. That change will be too large to review with Rietveld but will contain only the 'hg mv'. This CL will break the build. The followup 'hg mv' will fix it. For more about the move, see golang.org/s/go14nopkg. LGTM=r R=r CC=golang-codereviews https://golang.org/cl/134570043
2014-09-04androidtest.bash: drop noisy adb sync outputDavid Crawshaw
LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/138070043
2014-07-09androidtest.bash: missing !David Crawshaw
LGTM=iant R=bradfitz, iant CC=golang-codereviews https://golang.org/cl/112010045
2014-07-09androidtest.bash, misc/android: build scripts for androidDavid Crawshaw
LGTM=minux R=minux CC=golang-codereviews https://golang.org/cl/107640044