Lines Matching refs:NDK
17 # This shell script is used to run all NDK build tests in a row.
18 # "Build tests" are tests that check the building features of the NDK
22 # You need to define the NDK
31 . $ROOTDIR/build/core/ndk-common.sh
63 --ndk=*)
115 echo "Run all NDK automated tests at once."
122 echo " --ndk=<path> Path to NDK to test [$ROOTDIR]"
123 echo " --package=<path> Path to NDK package to test"
132 echo "NOTE: You cannot use --ndk and --package at the same time."
206 mkdir -p /tmp/ndk-tests
207 setup_default_log_file /tmp/ndk-tests/build-tests.log
211 dump "ERROR: You can't use --ndk and --package at the same time!"
214 NDK_ROOT=/tmp/ndk-tests/install
216 dump "Unpacking NDK package to $NDK_ROOT"
222 # Check the NDK install path.
226 dump "ERROR: Your --ndk option does not point to a directory: $NDK_ROOT"
230 if [ ! -f "$NDK_ROOT/ndk-build" -o ! -f "$NDK_ROOT/build/core/ndk-common.sh" ] ; then
231 dump "ERROR: Your --ndk option does not point to a valid NDK install: $NDK_ROOT"
232 dump "Please use a valid NDK install path for this option."
235 NDK="$NDK_ROOT"
237 NDK="$ROOTDIR"
244 BUILD_DIR=`mktemp -d /tmp/ndk-tests/build-XXXXXX`
332 run $NDK/ndk-build -j$JOBS "$@"
355 if [ -f "$NDK/RELEASE.TXT" ] ; then
356 # This is a release package, all samples should be under $NDK/samples
357 SAMPLES_DIRS="$NDK/samples"
360 dump "Your NDK release installation is broken!"
363 log "Using release NDK samples from: $SAMPLES_DIRS"
366 # directly from development/ndk.
367 DEVNDK_DIR=`dirname $NDK`/development/ndk
369 dump "ERROR: Could not find development NDK directory: $DEVNDK_DIR"
377 dump "Using development NDK samples from $DEVNDK_DIR"
388 echo "Building NDK sample: `basename $1`"
408 echo "Building NDK build test: `basename $1`"
440 echo "Building NDK device test: `basename $1`"
447 local DSTDIR="$2/ndk-tests"
454 dump "Skipping NDK device test run: `basename $1`"