X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=contrib%2Ftest_summary;h=98664359bc2e5b93a0ff9c8b126d8f416d8335c4;hb=a68717dcf3130e47b2e1448347b16dd106ec4acb;hp=377f9e5df0dbc1715fe13262a261fd9be4078215;hpb=10c7cbcd0c5ed55f8e5b18a7d5f6db13783d6ce8;p=pf3gnuchains%2Fgcc-fork.git diff --git a/contrib/test_summary b/contrib/test_summary index 377f9e5df0d..98664359bc2 100755 --- a/contrib/test_summary +++ b/contrib/test_summary @@ -28,14 +28,19 @@ # test_summary | sh # so as to actually send e-mail and move log files # It accepts a few command line arguments. For example: -# -o: re-reads logs that have been mailed already (.sum.sent) -# -t: prevents logs from being renamed -# -p: prepend specified file (or list of files: -p "a b") to the report -# -i: append specified file (or list of files: -i "a b") to the report -# -m: specify the e-mail address to send notes to. An appropriate default -# should be selected from the log files. -# -f: force reports to be mailed; if omitted, only reports that differ -# from the sent.* version are sent. +if test x"$1" = "x-h"; then + cat <<_EOF + -o: re-reads logs that have been mailed already (.sum.sent) + -t: prevents logs from being renamed + -p: prepend specified file (or list of files: -p "a b") to the report + -i: append specified file (or list of files: -i "a b") to the report + -m: specify the e-mail address to send notes to. An appropriate default + should be selected from the log files. + -f: force reports to be mailed; if omitted, only reports that differ + from the sent.* version are sent. +_EOF + exit 0 +fi # Find a good awk. if test -z "$AWK" ; then @@ -88,25 +93,30 @@ if $forcemail || $anychange; then :; else mailto=nobody; fi && cat ./config.status $files | $AWK ' BEGIN { - lang=""; + lang=""; configflags = ""; address="gcc-testresults@gcc.gnu.org"; version="gcc"; print "cat <<'"'"'EOF'"'"' |"; '${prepend_logs+" system(\"cat $prepend_logs\"); "}' } -$0 ~ /^(|# )[^ ]*\/configure / { +($0 ~ /^[^ ]*\/configure / || $0 ~ /^# [^ ]*\/configure /) && +configflags == "" { configflags = $0 " "; - gsub(/^# /, "", configflags); + sub(/^# /, "", configflags); + sub(/^s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,/, "", configflags); srcdir = configflags; - gsub(/\/configure .*/, "", srcdir); + sub(/\/configure .*/, "", srcdir); printf "LAST_UPDATED: "; system("tail -1 " srcdir "/LAST_UPDATED"); print ""; - gsub(/^[^ ]*\/configure /, "configure flags: ", configflags); - gsub(/ --with-gcc-version-trigger=[^ ]* /, " ", configflags); - gsub(/ --norecursion /, " ", configflags); - gsub(/ $/, "", configflags); + sub(/^[^ ]*\/configure */, " ", configflags); + sub(/,;t t $/, " ", configflags); + sub(/ --with-gcc-version-trigger=[^ ]* /, " ", configflags); + sub(/ --norecursion /, " ", configflags); + sub(/ $/, "", configflags); + sub(/^ *$/, " none", configflags); + configflags = "configure flags:" configflags; } /^Running target / { print ""; print; } /^Target / { if (host != "") next; else host = $3; } @@ -119,6 +129,7 @@ $2 == "version" { save = $0; $1 = ""; $2 = ""; version = $0; gsub(/^ */, "", ver /\===.*Summary/ { print ""; print; blanks=1; } /tests ===/ || /^(Target|Host|Native)/ || $2 == "version" { print; blanks=1; } /^(XPASS|FAIL|UNRESOLVED|WARNING|ERROR|# of )/ { print; } +/^using:/ { print ""; print; print ""; } # dumpall != 0 && /^X?(PASS|FAIL|UNTESTED)|^testcase/ { dumpall=0; } # dumpall != 0 { print; } # /^FAIL/ { dumpall=1; }