Changeset 3cc7540
- Timestamp:
- 04/27/2006 08:33:46 PM (18 years ago)
- Branches:
- experimental
- Children:
- 2fbc503
- Parents:
- 2f109c6
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
common/common-functions
r2f109c6 r3cc7540 408 408 create-sbu_du-report: $PREV 409 409 @\$(call echo_message, Building) 410 @./create-sbu_du-report.sh logs $VERSION $TEST410 @./create-sbu_du-report.sh logs $VERSION 411 411 @\$(call echo_report,$VERSION-SBU_DU-$(date --iso-8601).report) 412 412 @touch \$@ -
common/create-sbu_du-report.sh
r2f109c6 r3cc7540 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" -
master.sh
r2f109c6 r3cc7540 504 504 mkdir $LOGDIR 505 505 fi 506 507 # After be sure that all look sane and if REPORT=1, dump the settings to a file 508 # This file will be used to create the REPORT header 509 [[ "$REPORT" = "1" ]] && validate_config > $JHALFSDIR/jhalfs.config 510 506 511 >$LOGDIR/$LOG 507 512
Note:
See TracChangeset
for help on using the changeset viewer.