diff --git a/tools/arm64_test.sh b/tools/arm64_test.sh new file mode 100755 index 0000000..c1b0978 --- /dev/null +++ b/tools/arm64_test.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +NDKDIR=/opt/android-ndk + +make -j benchmark \ + CC="$NDKDIR/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc" \ + CFLAGS="--sysroot=$NDKDIR/platforms/android-21/arch-arm64 -fPIC -pie" + +adb push benchmark /data/local/tmp +if [ -z "$(adb shell '[ -e /data/local/tmp/testdata ] && echo 1')" ]; then + adb push $HOME/data/testdata /data/local/tmp +fi +adb shell /data/local/tmp/benchmark "$@" /data/local/tmp/testdata