diff options
author | frankfeng <frankfeng@google.com> | 2020-10-16 13:55:24 -0700 |
---|---|---|
committer | frankfeng <frankfeng@google.com> | 2020-10-19 15:35:20 -0700 |
commit | 726e3ec1c4f5da9e6179eded7650e5e900bf4b9d (patch) | |
tree | 9cabb6f856bdc5e387685b3ecb7977ab1ef26bbc /run-arm-optimized-routines-tests-on-android.sh | |
parent | 6dd09de3fdb39ea6ae8b5282ab1b2f064f6dcbbb (diff) | |
download | arm-optimized-routines-726e3ec1c4f5da9e6179eded7650e5e900bf4b9d.tar.gz |
Make arm-optimized-routines-tests works with testmapping
Bug: 148805488
Test: atest arm-optimized-routines-tests
Change-Id: Ic6e611f4a3ac10a64261cb0ea14222f3fc8a7aab
Diffstat (limited to 'run-arm-optimized-routines-tests-on-android.sh')
-rwxr-xr-x | run-arm-optimized-routines-tests-on-android.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/run-arm-optimized-routines-tests-on-android.sh b/run-arm-optimized-routines-tests-on-android.sh index 61efeaf..21163a3 100755 --- a/run-arm-optimized-routines-tests-on-android.sh +++ b/run-arm-optimized-routines-tests-on-android.sh @@ -25,16 +25,20 @@ check_failure() { } # Run the 32-bit tests. -adb shell /data/nativetest/mathtest/mathtest /data/nativetest/mathtest/math/test/testcases/directed/* -check_failure +if [ -e "$ANDROID_PRODUCT_OUT/data/nativetest/mathtest/mathtest" ]; then + adb shell /data/nativetest/mathtest/mathtest /data/nativetest/mathtest/math/test/testcases/directed/* + check_failure +fi # TODO: these tests are currently a bloodbath. #adb shell 'cp /data/nativetest/ulp/math/test/runulp.sh /data/nativetest/ulp/ && sh /data/nativetest/ulp/runulp.sh' #check_failure # Run the 64-bit tests. -adb shell /data/nativetest64/mathtest/mathtest /data/nativetest64/mathtest/math/test/testcases/directed/* -check_failure +if [ -e "$ANDROID_PRODUCT_OUT/data/nativetest64/mathtest/mathtest" ]; then + adb shell /data/nativetest64/mathtest/mathtest /data/nativetest64/mathtest/math/test/testcases/directed/* + check_failure +fi # TODO: these tests are currently a bloodbath. #adb shell 'cp /data/nativetest64/ulp/math/test/runulp.sh /data/nativetest64/ulp/ && sh /data/nativetest64/ulp/runulp.sh' |