]> Cypherpunks repositories - gostls13.git/commitdiff
androidtest.bash: delete
authorElias Naur <mail@eliasnaur.com>
Fri, 1 Mar 2019 11:08:00 +0000 (12:08 +0100)
committerElias Naur <mail@eliasnaur.com>
Fri, 1 Mar 2019 19:50:38 +0000 (19:50 +0000)
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>
misc/android/go_android_exec.go
src/androidtest.bash [deleted file]

index 9a4e2afc80373873c0e87d741906ea04d44a0ea7..ffdacb3db8538cb376968c2d7b0e54238e1b99ed 100644 (file)
@@ -51,7 +51,6 @@ func run(args ...string) string {
 }
 
 const (
-       // Directory structure on the target device androidtest.bash assumes.
        deviceGoroot = "/data/local/tmp/goroot"
        deviceGopath = "/data/local/tmp/gopath"
 )
@@ -73,8 +72,8 @@ func main() {
                log.Fatal(err)
        }
 
-       // In case we're booting a device or emulator alongside androidtest.bash
-       // wait for it to be ready. adb wait-for-device is not enough, we have to
+       // In case we're booting a device or emulator alongside all.bash, wait for
+       // it to be ready. adb wait-for-device is not enough, we have to
        // wait for sys.boot_completed.
        run("wait-for-device", "shell", "while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;")
 
diff --git a/src/androidtest.bash b/src/androidtest.bash
deleted file mode 100755 (executable)
index ba776d2..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/env bash
-# Copyright 2014 The Go Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style
-# license that can be found in the LICENSE file.
-
-# For testing Android.
-
-set -e
-ulimit -c 0 # no core files
-
-if [ ! -f make.bash ]; then
-       echo 'androidtest.bash must be run from $GOROOT/src' 1>&2
-       exit 1
-fi
-
-if [ -z $GOOS ]; then
-       export GOOS=android
-fi
-if [ "$GOOS" != "android" ]; then
-       echo "androidtest.bash requires GOOS=android, got GOOS=$GOOS" 1>&2
-       exit 1
-fi
-
-if [ -n "$GOARM" ] && [ "$GOARM" != "7" ]; then
-       echo "android only supports GOARM=7, got GOARM=$GOARM" 1>&2
-       exit 1
-fi
-
-export CGO_ENABLED=1
-unset GOBIN
-
-export GOROOT=$(dirname $(pwd))
-# Put the exec wrapper into PATH
-export PATH=$GOROOT/bin:$PATH
-
-# Run standard tests.
-bash all.bash