Home | History | Annotate | Download | only in tests

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
32 . $NDK_BUILDTOOLS_PATH/ndk-common.sh
68 TEST_DIR="/tmp/ndk-$USER/tests"
71 TARGET_TEST_SUBDIR="ndk-tests"
97 --ndk=*)
156 echo "Run NDK automated tests. Without any parameter, this will try to"
165 echo " --ndk=<path> Path to NDK to test [$ROOTDIR]"
166 echo " --package=<path> Path to NDK package to test"
178 echo "NOTE: You cannot use --ndk and --package at the same time."
291 dump "ERROR: You can't use --ndk and --package at the same time!"
294 NDK_ROOT=/tmp/ndk-tests/install
296 dump "Unpacking NDK package to $NDK_ROOT"
302 # Check the NDK install path.
306 dump "ERROR: Your --ndk option does not point to a directory: $NDK_ROOT"
310 if [ ! -f "$NDK_ROOT/ndk-build" -o ! -f "$NDK_ROOT/build/tools/prebuilt-common.sh" ] ; then
311 dump "ERROR: Your --ndk option does not point to a valid NDK install: $NDK_ROOT"
312 dump "Please use a valid NDK install path for this option."
315 NDK="$NDK_ROOT"
317 NDK="$ROOTDIR"
434 run $NDK/$(get_llvm_toolchain_binprefix $DEFAULT_LLVM_VERSION)/clang -shared -target le32-none-ndk -emit-llvm -o $1 ${TEMP_FILE}.c
455 GCC_TOOLCHAIN_VERSION=`cat $NDK/toolchains/llvm-$DEFAULT_LLVM_VERSION/setup.mk | grep '^TOOLCHAIN_VERSION' | awk '{print $3'}`
456 run mkdir -p $NDK/$GNUSTL_SUBDIR/$GCC_TOOLCHAIN_VERSION/libs/$ABI
457 run mkdir -p $NDK/$GABIXX_SUBDIR/libs/$ABI
458 run mkdir -p $NDK/$LIBPORTABLE_SUBDIR/libs/$ABI
459 run gen_empty_archive $NDK/$GNUSTL_SUBDIR/$GCC_TOOLCHAIN_VERSION/libs/$ABI/libsupc++.a
460 run gen_empty_archive $NDK/$GNUSTL_SUBDIR/$GCC_TOOLCHAIN_VERSION/libs/$ABI/libgnustl_static.a
461 run gen_empty_bitcode $NDK/$GNUSTL_SUBDIR/$GCC_TOOLCHAIN_VERSION/libs/$ABI/libgnustl_shared.bc
462 run gen_empty_archive $NDK/$GABIXX_SUBDIR/libs/$ABI/libgabi++_static.a
463 run gen_empty_bitcode $NDK/$GABIXX_SUBDIR/libs/$ABI/libgabi++_shared.bc
464 run cp -a $NDK/$GNUSTL_SUBDIR/$GCC_TOOLCHAIN_VERSION/libs/$(get_default_abi_for_arch arm)/include $NDK/$GNUSTL_SUBDIR/$GCC_TOOLCHAIN_VERSION/libs/$ABI
486 run $WINE cmd /c Z:$NDK/ndk-build.cmd -j$JOBS "$@" APP_LDFLAGS="$APP_LDFLAGS" APP_CFLAGS="$APP_CFLAGS"
489 run $WINE cmd /c Z:$NDK/ndk-build.cmd clean
491 run $WINE cmd /c Z:$NDK/ndk-build.cmd "$@" -j1 APP_LDFLAGS="$APP_LDFLAGS" APP_CFLAGS="$APP_CFLAGS"
494 run $NDK/ndk-build -j$JOBS "$@" APP_LDFLAGS="$APP_LDFLAGS" APP_CFLAGS="$APP_CFLAGS"
509 $GNUMAKE --no-print-dir -f $NDK/build/core/build-local.mk -C $PROJECT DUMP_$VAR | tail -1
675 if [ -f "$NDK/RELEASE.TXT" ] ; then
676 # This is a release package, all samples should be under $NDK/samples
677 SAMPLES_DIRS="$NDK/samples"
680 dump "Your NDK release installation is broken!"
683 log "Using release NDK samples from: $SAMPLES_DIRS"
686 # directly from development/ndk.
687 DEVNDK_DIR=`dirname $NDK`/development/ndk
689 dump "ERROR: Could not find development NDK directory: $DEVNDK_DIR"
697 dump "Using development NDK samples from $DEVNDK_DIR"
708 echo "Building NDK sample: `basename $1`"
729 echo "Building NDK build test: `basename $1`"
742 export NDK
773 echo "Building NDK device test: `basename $1`"
794 if is_broken_build $TEST "NDK device test not built"; then
800 dump "Skipping NDK device test run: $TEST_NAME"
808 dump "Skipping NDK device test run: $TEST_NAME (no run for binary built by $TARGET_TOOLCHAIN_VERSION)"
813 dump "Skipping NDK device test run: $TEST_NAME ($SKIPPED_EXECUTABLES)"
822 dump "Skipping NDK device test run (no $CPU_ABI binaries): $TEST_NAME"
897 DATAPATHS=$NDK/$DATAPATHS
1006 run rm -rf $NDK/$GNUSTL_SUBDIR/$GCC_TOOLCHAIN_VERSION/libs/$ABI
1007 run rm -rf $NDK/$GABIXX_SUBDIR/libs/$ABI
1008 run rm -rf $NDK/$LIBPORTABLE_SUBDIR/libs/$ABI