- Timestamp:
- 04/27/2006 08:15:07 PM (18 years ago)
- Branches:
- 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- d9a53e0
- Parents:
- 0ac490b
- Location:
- common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
common/common-functions
r0ac490b ra9429d5 399 399 create-sbu_du-report: $PREV 400 400 @\$(call echo_message, Building) 401 @./create-sbu_du-report.sh logs $VERSION $TEST401 @./create-sbu_du-report.sh logs $VERSION 402 402 @\$(call echo_report,$VERSION-SBU_DU-$(date --iso-8601).report) 403 403 @touch \$@ -
common/create-sbu_du-report.sh
r0ac490b ra9429d5 6 6 LOGSDIR=$1 7 7 VERSION=$2 8 TESTLEVEL=$39 8 10 9 # Make sure that we have a directory as first argument 11 10 [[ ! -d "$LOGSDIR" ]] && \ 12 echo -e "\nUSAGE: create-sbu_du-report.sh logs_directory [book_version testsuites_level]\n" && exit11 echo -e "\nUSAGE: create-sbu_du-report.sh logs_directory [book_version]\n" && exit 13 12 14 13 # Make sure that the first argument is a jhalfs logs directory … … 16 15 echo -e "\nLooks like $LOGSDIR isn't a jhalfs logs directory.\n" && exit 17 16 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 20 18 [[ -z "$VERSION" ]] && VERSION=unknown 21 [[ -z "$TESTLEVEL" ]] && TESTLEVEL=unknown22 19 23 20 # If there is iteration logs directories, copy the logs inside iteration-1 … … 29 26 REPORT="$VERSION"-SBU_DU-$(date --iso-8601).report 30 27 31 # Dump generation time stamp , book version, and testsuites level28 # Dump generation time stamp and book version 32 29 echo -e "\n`date`\n" > "$REPORT" 33 30 echo -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 33 if [[ -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" 36 else 37 echo -e "\nNOTE: the jhalfs configuration settings are unknown" >> "$REPORT" 38 fi 35 39 36 40 # Dump CPU and memory info 37 echo -e "\n\ t\tCPU type:\n" >> "$REPORT"41 echo -e "\n\n\t\tCPU type:\n" >> "$REPORT" 38 42 cat /proc/cpuinfo >> "$REPORT" 39 43 echo -e "\n\t\tMemory info:\n" >> "$REPORT" 40 44 free >> "$REPORT" 41 45 42 # Parse only that logs that have time data 46 # Parse only that logs that have time dataq 43 47 BUILDLOGS=`grep -l "^real\>" $LOGSDIR/*` 44 48
Note:
See TracChangeset
for help on using the changeset viewer.