3 . $(dirname $0)/../build/run-on-host.sh
5 if [ "$1" = glibc ]; then
6 m -j bionic-benchmarks-glibc
8 cd ${ANDROID_BUILD_TOP}
9 export ANDROID_DATA=${TARGET_OUT_DATA}
10 export ANDROID_ROOT=${TARGET_OUT}
11 ${HOST_OUT}/nativetest64/bionic-benchmarks-glibc/bionic-benchmarks-glibc $@
14 elif [ "$1" != 32 -a "$1" != 64 ]; then
15 echo "Usage: $0 [ 32 | 64 | glibc ] [gtest flags]"
19 if [ ${HOST_OS}-${HOST_ARCH} = linux-x86 -o ${HOST_OS}-${HOST_ARCH} = linux-x86_64 ]; then
21 prepare $1 bionic-benchmarks
23 if [ ${TARGET_ARCH} = x86 -o ${TARGET_ARCH} = x86_64 ]; then
25 cd ${ANDROID_BUILD_TOP}
26 export ANDROID_DATA=${TARGET_OUT_DATA}
27 export ANDROID_ROOT=${TARGET_OUT}
28 ${NATIVETEST}/bionic-benchmarks/bionic-benchmarks $@
31 echo "$0 not supported on TARGET_ARCH=$TARGET_ARCH"