aboutsummaryrefslogtreecommitdiff
path: root/src/androidtest.bash
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@golang.org>2015-04-08 09:28:05 -0400
committerDavid Crawshaw <crawshaw@golang.org>2015-04-08 14:39:07 +0000
commit68f57c83274c0f30b94a6adc1668fe034b5780f2 (patch)
tree13dd09ef71af851ca8ac132614fe8a61d56dc09a /src/androidtest.bash
parenta173357cd5d94ee88112ba46871c5d9344a2445e (diff)
downloadgo-68f57c83274c0f30b94a6adc1668fe034b5780f2.tar.xz
androidtest.bash: copy pkg for gcimporter tests
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>
Diffstat (limited to 'src/androidtest.bash')
-rwxr-xr-xsrc/androidtest.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/androidtest.bash b/src/androidtest.bash
index ee97e30d58..aad1f7ec8d 100755
--- a/src/androidtest.bash
+++ b/src/androidtest.bash
@@ -44,9 +44,11 @@ GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH go build \
export ANDROID_PRODUCT_OUT=/tmp/androidtest-$$
FAKE_GOROOT=$ANDROID_PRODUCT_OUT/data/local/tmp/goroot
mkdir -p $FAKE_GOROOT
+mkdir -p $FAKE_GOROOT/pkg
cp -a "${GOROOT}/src" "${FAKE_GOROOT}/"
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'
time adb sync data &> /dev/null
echo ''