• Home
  • Raw
  • Download

Lines Matching +full:runner +full:- +full:before +full:- +full:script

9 #      http://www.apache.org/licenses/LICENSE-2.0
18 # Script to build and run the Oboe tests on an attached Android device or emulator
21 # - CMake on PATH. This is usually found in $ANDROID_HOME/cmake/<version>/bin.
22 # - ANDROID_NDK environment variable is set to your Android NDK location
24 # - Android device or emulator attached and accessible via adb
27 # - Run this script
28 # - Check the test results on your target device
30 # What does the script do?
31 # - Builds a test binary for the target architecture
32 # - Copies the test binary into the UnitTestRunner app
33 # - Builds, installs and runs the app on the target device
37 # If you want to perform a clean build just delete the 'build' folder and re-run this script. You w…
42 # permission (and `run-as` is broken). This means that the test binary must be executed by an app w…
57 if [ -z "$ANDROID_NDK" ]; then
62 if [ ! $(type -P ${CMAKE}) ]; then
63 …on your path. You can install it using Android Studio using Tools->Android->SDK Manager->SDK Tools…
69 ABI=$(adb shell getprop ro.product.cpu.abi | tr -d '\n\r')
71 if [ -z "$ABI" ]; then
78 if [ ${ABI} == "arm64-v8a" ] || [ ${ABI} == "x86_64" ]; then
79 PLATFORM=android-21
80 elif [ ${ABI} == "armeabi-v7a" ] || [ ${ABI} == "x86" ]; then
81 PLATFORM=android-16
83 …echo "Unrecognised ABI: ${ABI}. Supported ABIs are: arm64-v8a, armeabi-v7a, x86_64, x86. If you fe…
87 mkdir -p ${BUILD_DIR}
90 rm -r ${BUILD_DIR}
95 CMAKE_ARGS="-S. \
96 -B${BUILD_DIR} \
97 -DANDROID_ABI=${ABI} \
98 -DANDROID_PLATFORM=${PLATFORM} \
99 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
100 -DCMAKE_CXX_FLAGS=-std=c++17 \
101 -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake \
102 -DCMAKE_VERBOSE_MAKEFILE=1"
108 make -j5
110 if [ $? -eq 0 ]; then
119 # Copy the binary into the jniLibs and assets folders of the unit test runner app
121 # The jniLibs folder doesn't seem to work before Android O
134 # Build and install the unit test runner app
136 echo "Building test runner app"
138 if [ $? -ne 0 ]; then
145 if [ $? -ne 0 ]; then
151 echo "Clear logcat from before the test."
152 adb logcat -c
153 echo "Starting app - Check your device for test results"