b02206a602
It's going away, since we don't have a single library on device anymore, and it's simpler to keep the host looking like the device. This doesn't seem to need it anymore either -- the libraries are found relative to the test binary. Test: bionic/tests/run-on-host.sh glibc Change-Id: Ie9bf6388ecd773623181ec9eadb35d6e0ba0a441
34 lines
984 B
Bash
Executable file
34 lines
984 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
. $(dirname $0)/../build/run-on-host.sh
|
|
|
|
if [ "$1" = glibc ]; then
|
|
m -j bionic-unit-tests-glibc
|
|
(
|
|
cd ${ANDROID_BUILD_TOP}
|
|
export ANDROID_DATA=${TARGET_OUT_DATA}
|
|
export ANDROID_ROOT=${TARGET_OUT}
|
|
${HOST_OUT}/nativetest64/bionic-unit-tests-glibc/bionic-unit-tests-glibc $@
|
|
)
|
|
exit 0
|
|
elif [ "$1" != 32 -a "$1" != 64 ]; then
|
|
echo "Usage: $0 [ 32 | 64 | glibc ] [gtest flags]"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ${HOST_OS}-${HOST_ARCH} = linux-x86 -o ${HOST_OS}-${HOST_ARCH} = linux-x86_64 ]; then
|
|
|
|
prepare $1 bionic-unit-tests
|
|
|
|
if [ ${TARGET_ARCH} = x86 -o ${TARGET_ARCH} = x86_64 ]; then
|
|
(
|
|
cd ${ANDROID_BUILD_TOP}
|
|
export ANDROID_DATA=${TARGET_OUT_DATA}
|
|
export ANDROID_DNS_MODE=local
|
|
export ANDROID_ROOT=${TARGET_OUT}
|
|
${NATIVETEST}/bionic-unit-tests/bionic-unit-tests $@
|
|
)
|
|
else
|
|
echo "$0 not supported on TARGET_ARCH=$TARGET_ARCH"
|
|
fi
|
|
fi
|