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