4da99ffe5e
This was broken by all the mainline modules stuff. It's quite a bit hairier to set up now, given that we don't have an apexd on the host. An alternative might be to actually set up a fake /apex that points to the bootstrap directories? Test: ./benchmarks/run-on-host.sh 64 Test: ./tests/run-on-host.sh 64 Change-Id: If2c277ba492c7c443cdf51526ea42f56568e2ea6
33 lines
946 B
Bash
Executable file
33 lines
946 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
. $(dirname $0)/../build/run-on-host.sh
|
|
|
|
if [ "$1" = glibc ]; then
|
|
m -j bionic-benchmarks-glibc
|
|
(
|
|
cd ${ANDROID_BUILD_TOP}
|
|
export ANDROID_DATA=${TARGET_OUT_DATA}
|
|
export ANDROID_ROOT=${TARGET_OUT}
|
|
${HOST_OUT}/nativetest64/bionic-benchmarks-glibc/bionic-benchmarks-glibc $@
|
|
)
|
|
exit 0
|
|
elif [ "$1" != 32 -a "$1" != 64 ]; then
|
|
echo "Usage: $0 [ 32 | 64 | glibc ] [benchmark flags]"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ${HOST_OS}-${HOST_ARCH} = linux-x86 -o ${HOST_OS}-${HOST_ARCH} = linux-x86_64 ]; then
|
|
|
|
prepare $1 bionic-benchmarks
|
|
|
|
if [ ${TARGET_ARCH} = x86 -o ${TARGET_ARCH} = x86_64 ]; then
|
|
(
|
|
cd ${ANDROID_BUILD_TOP}
|
|
export ANDROID_DATA=${TARGET_OUT_DATA}
|
|
export ANDROID_ROOT=${TARGET_OUT}
|
|
${BENCHMARKS}/bionic-benchmarks/bionic-benchmarks $@
|
|
)
|
|
else
|
|
echo "$0 not supported on TARGET_ARCH=$TARGET_ARCH"
|
|
fi
|
|
fi
|