From e07f3d084d6c31352c2fa75e4f6e198e6e08dd9d Mon Sep 17 00:00:00 2001 From: Pavlin Radoslavov Date: Tue, 9 Jan 2018 05:58:53 -0800 Subject: [PATCH] Run by default the 64-bit unit tests on 64-bit devices Bug: 71739588 Test: cd system/bt; mm -j 40; test/run_unit_tests.sh Change-Id: Ie4206a8935456a0b62b7a4b90c7247f398a6a7ef --- test/run_unit_tests.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/run_unit_tests.sh b/test/run_unit_tests.sh index 8fe47f874..4c390bf84 100755 --- a/test/run_unit_tests.sh +++ b/test/run_unit_tests.sh @@ -102,11 +102,18 @@ if [ -n "${device}" ]; then adb+=( "-s" "${device}" ) fi +source ${ANDROID_BUILD_TOP}/build/envsetup.sh +target_arch=$(gettargetarch) + failed_tests=() for spec in "${tests[@]}" do name="${spec%%.*}" - binary="/data/nativetest/${name}/${name}" + if [[ $target_arch == *"64"* ]]; then + binary="/data/nativetest64/${name}/${name}" + else + binary="/data/nativetest/${name}/${name}" + fi push_command=( "${adb[@]}" push {"${ANDROID_PRODUCT_OUT}",}"${binary}" ) test_command=( "${adb[@]}" shell "${binary}" ) -- 2.11.0