diff options
| author | Keith Randall <khr@golang.org> | 2015-05-28 13:49:20 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2015-05-28 13:51:18 -0700 |
| commit | 067e8dfd82163ddcbde248dbe5a1187a417e5d36 (patch) | |
| tree | 7bfb46b901d03498c7739c92bec21d81d3a2c485 /src/androidtest.bash | |
| parent | 247786c1745abc0c7185f7c15ca256edf68ed6d6 (diff) | |
| parent | ccc037699e2966b7c79ba84c67471cef5e67a3b8 (diff) | |
| download | go-067e8dfd82163ddcbde248dbe5a1187a417e5d36.tar.xz | |
[dev.ssa] Merge remote-tracking branch 'origin/master' into mergebranch
Semi-regular merge of tip to dev.ssa.
Complicated a bit by the move of cmd/internal/* to cmd/compile/internal/*.
Change-Id: I1c66d3c29bb95cce4a53c5a3476373aa5245303d
Diffstat (limited to 'src/androidtest.bash')
| -rwxr-xr-x | src/androidtest.bash | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/androidtest.bash b/src/androidtest.bash index aad1f7ec8d..39e73c350b 100755 --- a/src/androidtest.bash +++ b/src/androidtest.bash @@ -24,10 +24,11 @@ if [ "$GOOS" != "android" ]; then fi export CGO_ENABLED=1 +unset GOBIN -# Run the build for the host bootstrap, so we can build go_android_exec. +# Do the build first, so we can build go_android_exec and cleaner. # Also lets us fail early before the (slow) adb push if the build is broken. -./make.bash +. ./make.bash --no-banner export GOROOT=$(dirname $(pwd)) export PATH=$GOROOT/bin:$PATH GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH go build \ @@ -50,9 +51,21 @@ cp -a "${GOROOT}/test" "${FAKE_GOROOT}/" cp -a "${GOROOT}/lib" "${FAKE_GOROOT}/" cp -a "${GOROOT}/pkg/android_$GOARCH" "${FAKE_GOROOT}/pkg/" echo '# Syncing test files to android device' +adb shell mkdir -p /data/local/tmp/goroot time adb sync data &> /dev/null -echo '' + +export CLEANER=/tmp/androidcleaner-$$ +cp ../misc/android/cleaner.go $CLEANER.go +echo 'var files = `' >> $CLEANER.go +(cd $ANDROID_PRODUCT_OUT/data/local/tmp/goroot; find . >> $CLEANER.go) +echo '`' >> $CLEANER.go +go build -o $CLEANER $CLEANER.go +adb push $CLEANER /data/local/tmp/cleaner +rm $CLEANER $CLEANER.go +adb shell /data/local/tmp/cleaner + rm -rf "$ANDROID_PRODUCT_OUT" +echo '' -# Run standard build and tests. -./all.bash --no-clean +# Run standard tests. +bash run.bash --no-rebuild |
