Changeset a9429d5 for common


Ignore:
Timestamp:
04/27/2006 08:15:07 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
d9a53e0
Parents:
0ac490b
Message:

Added jhalfs configuration settings to the sbu_du report header.

Location:
common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    r0ac490b ra9429d5  
    399399create-sbu_du-report:  $PREV
    400400        @\$(call echo_message, Building)
    401         @./create-sbu_du-report.sh logs $VERSION $TEST
     401        @./create-sbu_du-report.sh logs $VERSION
    402402        @\$(call echo_report,$VERSION-SBU_DU-$(date --iso-8601).report)
    403403        @touch  \$@
  • common/create-sbu_du-report.sh

    r0ac490b ra9429d5  
    66LOGSDIR=$1
    77VERSION=$2
    8 TESTLEVEL=$3
    98
    109# Make sure that we have a directory as first argument
    1110[[ ! -d "$LOGSDIR" ]] && \
    12   echo -e "\nUSAGE: create-sbu_du-report.sh logs_directory [book_version testsuites_level]\n" && exit
     11  echo -e "\nUSAGE: create-sbu_du-report.sh logs_directory [book_version]\n" && exit
    1312
    1413# Make sure that the first argument is a jhalfs logs directory
     
    1615  echo -e "\nLooks like $LOGSDIR isn't a jhalfs logs directory.\n" && exit
    1716
    18 # If this script is run manually, the book version and testsuite levels
    19 # may be unknow
     17# If this script is run manually, the book version may be unknow
    2018[[ -z "$VERSION" ]] && VERSION=unknown
    21 [[ -z "$TESTLEVEL" ]] && TESTLEVEL=unknown
    2219
    2320# If there is iteration logs directories, copy the logs inside iteration-1
     
    2926REPORT="$VERSION"-SBU_DU-$(date --iso-8601).report
    3027
    31 # Dump generation time stamp, book version, and testsuites level
     28# Dump generation time stamp and book version
    3229echo -e "\n`date`\n" > "$REPORT"
    3330echo -e "Book version is:\t$VERSION\n" >> "$REPORT"
    34 echo -e "Test suites level:\t$TESTLEVEL\n" >> "$REPORT"
     31
     32# If found, dump jhalfs.config file in a readable format
     33if [[ -f jhalfs.config ]] ; then
     34  echo -e "\n\tjhalfs configuration settings:\n" >> "$REPORT"
     35  cat jhalfs.config | sed -e '/parameters/d;s/.\[[013;]*m//g;s/</\t</;s/^\w\{1,6\}:/&\t/' >> "$REPORT"
     36else
     37  echo -e "\nNOTE: the jhalfs configuration settings are unknown" >> "$REPORT"
     38fi
    3539
    3640# Dump CPU and memory info
    37 echo -e "\n\t\tCPU type:\n" >> "$REPORT"
     41echo -e "\n\n\t\tCPU type:\n" >> "$REPORT"
    3842cat /proc/cpuinfo >> "$REPORT"
    3943echo -e "\n\t\tMemory info:\n" >> "$REPORT"
    4044free >> "$REPORT"
    4145
    42 # Parse only that logs that have time data
     46# Parse only that logs that have time dataq
    4347BUILDLOGS=`grep -l "^real\>" $LOGSDIR/*`
    4448
Note: See TracChangeset for help on using the changeset viewer.