MAKEALL: Fix error reporting for BUILD_NBUILDS==1
PATCH 1/2 MAKEALL: Fix error reporting for BUILD_NBUILDS==1
This was broken by f588bb034d5d3a0417f45965f1aba4d4cf8a2893
Signed-off-by Joe Hershberger <[email protected]>
Cc Andy Fleming <[email protected]>
--- MAKEALL | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
MAKEALL +5 -3
@@ -709,7 +709,11 @@ build_targets() { : $((CURRENT_CNT += 1)) rm -f "${donep}${TOTAL_CNT}" rm -f "${skipp}${TOTAL_CNT}" - build_target ${t} ${TOTAL_CNT} & + if [ $BUILD_MANY == 1 ] ; then + build_target ${t} ${TOTAL_CNT} & + else + build_target ${t} ${TOTAL_CNT} + fi fi # We maintain a running count of all the builds we have done.
@@ -745,8 +749,6 @@ print_stats() { if [ $BUILD_MANY == 1 ] && [ -e "${OUTPUT_PREFIX}/ERR" ] ; then ERR_LIST=$(ls ${OUTPUT_PREFIX}/ERR/) ERR_CNT=`ls -1 ${OUTPUT_PREFIX}/ERR/ | wc | awk '{print $1}'` - else - ERR_CNT=0 fi echo ""
Signature · 1 line
1.6.0.2
PATCH 2/2 MAKEALL: Report boards with errors vs warnings
In the summary, indicate which boards errored and which boards merely warned.
Signed-off-by Joe Hershberger <[email protected]>
Cc Andy Fleming <[email protected]>
--- MAKEALL | 26 ++++++++++++++++++++------ 1 files changed, 20 insertions(+), 6 deletions(-)
MAKEALL +20 -6
@@ -201,6 +201,8 @@ LIST="" # Keep track of the number of builds and errors ERR_CNT=0 ERR_LIST="" +WRN_CNT=0 +WRN_LIST="" TOTAL_CNT=0 CURRENT_CNT=0 OLDEST_IDX=1
@@ -639,14 +641,19 @@ build_target() { ${MAKE} tidy if [ -s ${LOG_DIR}/${target}.ERR ] ; then - touch ${OUTPUT_PREFIX}/ERR/${target} + cp ${LOG_DIR}/${target}.ERR ${OUTPUT_PREFIX}/ERR/${target} else rm ${LOG_DIR}/${target}.ERR fi else if [ -s ${LOG_DIR}/${target}.ERR ] ; then - : $(( ERR_CNT += 1 )) - ERR_LIST="${ERR_LIST} $target" + if grep -iw error ${LOG_DIR}/${target}.ERR ; then + : $(( ERR_CNT += 1 )) + ERR_LIST="${ERR_LIST} $target" + else + : $(( WRN_CNT += 1 )) + WRN_LIST="${WRN_LIST} $target" + fi else rm ${LOG_DIR}/${target}.ERR fi
@@ -747,15 +754,22 @@ print_stats() { rm -f ${donep}* ${skipp}* if [ $BUILD_MANY == 1 ] && [ -e "${OUTPUT_PREFIX}/ERR" ] ; then - ERR_LIST=$(ls ${OUTPUT_PREFIX}/ERR/) - ERR_CNT=`ls -1 ${OUTPUT_PREFIX}/ERR/ | wc | awk '{print $1}'` + ERR_LIST=`grep -iwl error ${OUTPUT_PREFIX}/ERR/*` + ERR_LIST=`for f in $ERR_LIST ; do echo -n " $(basename $f)" ; done` + ERR_CNT=`echo $ERR_LIST | wc -w | awk '{print $1}'` + WRN_LIST=`grep -iwL error ${OUTPUT_PREFIX}/ERR/*` + WRN_LIST=`for f in $WRN_LIST ; do echo -n " $(basename $f)" ; done` + WRN_CNT=`echo $WRN_LIST | wc -w | awk '{print $1}'` fi echo "" echo "--------------------- SUMMARY ----------------------------" echo "Boards compiled: ${TOTAL_CNT}" if [ ${ERR_CNT} -gt 0 ] ; then - echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )" + echo "Boards with errors: ${ERR_CNT} (${ERR_LIST} )" + fi + if [ ${WRN_CNT} -gt 0 ] ; then + echo "Boards with warnings but no errors: ${WRN_CNT} (${WRN_LIST} )" fi echo "----------------------------------------------------------"
Signature · 1 line
1.6.0.2
Wolfgang Denk
AppliedPATCH 2/2 MAKEALL: Report boards with errors vs warnings
Dear Joe Hershberger,
Quoted 8 lines · In message <[email protected]> you wrote:
In the summary, indicate which boards errored and which boards merely warned.
Signed-off-by Joe Hershberger <[email protected]>Cc Andy Fleming <[email protected]>--- MAKEALL | 26 ++++++++++++++++++++------ 1 files changed, 20 insertions(+), 6 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "No one talks peace unless he's ready to back it up with war." "He talks of peace if it is the only way to live." -- Colonel Green and Surak of Vulcan, "The Savage Curtain", stardate 5906.5.
Wolfgang Denk
AppliedPATCH 1/2 MAKEALL: Fix error reporting for BUILD_NBUILDS==1
In reply to Joe HershbergerDear Joe Hershberger,
Quoted 7 lines · In message <[email protected]> you wrote:
This was broken by
f588bb034d5d3a0417f45965f1aba4d4cf8a2893Signed-off-by Joe Hershberger <[email protected]>Cc Andy Fleming <[email protected]>--- MAKEALL | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 9 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de It took him several minutes to understand any new idea put to him, and this is a very valuable trait in a leader, because anything any- one is still trying to explain to you after two minutes is probably important and anything they give up after a mere minute or so is al- most certainly something they shouldn't have been bothering you with in the first place. - Terry Pratchett, _Reaper Man_