am 6d0ef0df: ndk: handle --verbose option in tests/run-all.sh script
Merge commit '6d0ef0df9852b3750f88bb38dfaeebe527df7be3' into gingerbread-plus-aosp * commit '6d0ef0df9852b3750f88bb38dfaeebe527df7be3': ndk: handle --verbose option in tests/run-all.sh script
This commit is contained in:
committed by
Android Git Automerger
commit
110f6cd94a
@@ -78,6 +78,17 @@ mkdir -p `dirname $MYLOG`
|
||||
rm -f $MYLOG
|
||||
echo "NDK automated tests log file" > $MYLOG
|
||||
|
||||
if [ "$VERBOSE" = "yes" ] ; then
|
||||
run ()
|
||||
{
|
||||
$NDK/ndk-build -B $JOBS 2>&1
|
||||
}
|
||||
else
|
||||
run ()
|
||||
{
|
||||
$NDK/ndk-build -B $JOBS >> $MYLOG 2>&1
|
||||
}
|
||||
fi
|
||||
|
||||
#
|
||||
# Rebuild all samples first
|
||||
@@ -86,9 +97,9 @@ build_sample ()
|
||||
{
|
||||
echo "Building NDK sample: $1"
|
||||
cd $PROGDIR/../samples/$1
|
||||
$NDK/ndk-build -B $JOBS >> $MYLOG 2>&1
|
||||
run $NDK/ndk-build -B $JOBS
|
||||
if [ $? != 0 ] ; then
|
||||
echo "!!! BUILD FAILURE !!!"
|
||||
echo "!!! BUILD FAILURE !!! See $MYLOG for details or use --verbose option!"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user