aboutsummaryrefslogtreecommitdiffstats
path: root/test/native/cross-android-armv7-tst1/arm-gcc-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/native/cross-android-armv7-tst1/arm-gcc-test.sh')
-rw-r--r--test/native/cross-android-armv7-tst1/arm-gcc-test.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/native/cross-android-armv7-tst1/arm-gcc-test.sh b/test/native/cross-android-armv7-tst1/arm-gcc-test.sh
new file mode 100644
index 0000000..ecdf88a
--- /dev/null
+++ b/test/native/cross-android-armv7-tst1/arm-gcc-test.sh
@@ -0,0 +1,15 @@
+
+TEST_APP=arm-gcc-test
+
+SPEC=androideabi.armv7-a
+
+. /opt-linux-x86/etc/profile.android
+. ./android.ndk.env-4.4.3-${SPEC}.sh
+
+mkdir -p build/native
+
+$NDK_GCC $NDK_INCLUDE $NDK_CFLAGS $NDK_LDFLAGS -o build/native/${TEST_APP}-${SPEC} ${TEST_APP}.c
+$NDK_READELF -a build/native/${TEST_APP}-${SPEC} > build/native/${TEST_APP}-${SPEC}.txt
+adb push build/native/${TEST_APP}-${SPEC} /projects/native-tst
+adb shell /projects/native-tst/${TEST_APP}-${SPEC}
+