[Android] Verify Android NDK Installation and Configuration
authorDonghyeon Jeong <dhyeon.jeong@samsung.com>
Fri, 26 Jul 2024 08:17:44 +0000 (17:17 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Thu, 1 Aug 2024 01:51:44 +0000 (10:51 +0900)
This patch checks if Android NDK is installed and configured before building using NDK in the Android test script.

**Self-evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test:   [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghyeon Jeong <dhyeon.jeong@samsung.com>
tools/android_test.sh

index f59ab7fa59ca5d78e4379679fb8f3d753713e301..1de55b492b37ccda06fa863fe6d798e9bdb4fac3 100755 (executable)
@@ -8,7 +8,11 @@
 # You can modify test/jni/Android.mk to choose module that you wish to build
 cd test/jni
 
-# Perequisite: Install and configure the NDK
+if [ ! -d $ANDROID_NDK ]; then
+  echo "Error: ANDROID_NDK not found."
+  exit 1
+fi
+
 ndk-build
 
 if [ $? != 0 ]; then