Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e8a1974 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Run by default the 64-bit unit tests on 64-bit devices

am: 6b87071b

Change-Id: I14a2c0eeaec519df9bdefe3ada05c48efc3d3198
parents 5b82f4ad 6b87071b
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -102,11 +102,18 @@ if [ -n "${device}" ]; then
  adb+=( "-s" "${device}" )
  adb+=( "-s" "${device}" )
fi
fi


source ${ANDROID_BUILD_TOP}/build/envsetup.sh
target_arch=$(gettargetarch)

failed_tests=()
failed_tests=()
for spec in "${tests[@]}"
for spec in "${tests[@]}"
do
do
  name="${spec%%.*}"
  name="${spec%%.*}"
  if [[ $target_arch == *"64"* ]]; then
    binary="/data/nativetest64/${name}/${name}"
  else
    binary="/data/nativetest/${name}/${name}"
    binary="/data/nativetest/${name}/${name}"
  fi


  push_command=( "${adb[@]}" push {"${ANDROID_PRODUCT_OUT}",}"${binary}" )
  push_command=( "${adb[@]}" push {"${ANDROID_PRODUCT_OUT}",}"${binary}" )
  test_command=( "${adb[@]}" shell "${binary}" )
  test_command=( "${adb[@]}" shell "${binary}" )