Commit 3e5fb7a9 by Alexandre Oliva Committed by Jeff Law

test_summary: new switch (-i) and environment variable (append_logs) for including files in...

        * test_summary: new switch (-i) and environment variable
        (append_logs) for including files in the report.

From-SVN: r20578
parent 94fb3933
Fri Jun 19 02:36:59 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
* test_summary: new switch (-i) and environment variable
(append_logs) for including files in the report.
1998-06-01 Manfred Hollstein <manfred@s-direktnet.de> 1998-06-01 Manfred Hollstein <manfred@s-direktnet.de>
* warn_summary: Update to Kaveh's latest version allowing to * warn_summary: Update to Kaveh's latest version allowing to
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
# It accepts a few command line arguments. For example: # It accepts a few command line arguments. For example:
# -o: re-reads logs that have been mailed already (.sum.sent) # -o: re-reads logs that have been mailed already (.sum.sent)
# -t: prevents logs from being renamed # -t: prevents logs from being renamed
# -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. # -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 # -f: force reports to be mailed; if omitted, only reports that differ from the sent.* version are sent
...@@ -50,6 +51,7 @@ while true; do ...@@ -50,6 +51,7 @@ while true; do
case "$1" in case "$1" in
-o) filesuffix=.sent; move=false; : ${mailto=nobody}; shift;; -o) filesuffix=.sent; move=false; : ${mailto=nobody}; shift;;
-t) move=false; shift;; -t) move=false; shift;;
-i) append_logs=${append_logs+"$append_logs "}"$2"; shift 2;;
-m) mailto=$2; forcemail=true; shift 2;; -m) mailto=$2; forcemail=true; shift 2;;
-f) unset mailto; forcemail=true; shift;; -f) unset mailto; forcemail=true; shift;;
*) break;; *) break;;
...@@ -108,9 +110,11 @@ $2 == "version" { save = $0; $1 = ""; $2 = ""; version = $0; gsub(/^ */, "", ver ...@@ -108,9 +110,11 @@ $2 == "version" { save = $0; $1 = ""; $2 = ""; version = $0; gsub(/^ */, "", ver
# /^FAIL/ { dumpall=1; } # /^FAIL/ { dumpall=1; }
/^$/ && blanks>0 { print; --blanks; } /^$/ && blanks>0 { print; --blanks; }
END { if (lang != "") { END { if (lang != "") {
print "";
print configflags; print configflags;
'${BOOT_CFLAGS+'print "BOOT_CFLAGS='"${BOOT_CFLAGS}"'";'}' '${BOOT_CFLAGS+'print "BOOT_CFLAGS='"${BOOT_CFLAGS}"'";'}'
if (boot_cflags != 0) print boot_cflags; if (boot_cflags != 0) print boot_cflags;
'${append_logs+" system(\"cat $append_logs\"); "}'
print "EOF"; print "EOF";
print "Mail -s \"Results for " prefix version lang "testsuite on " host "\" '"${mailto}"' &&"; print "Mail -s \"Results for " prefix version lang "testsuite on " host "\" '"${mailto}"' &&";
}} }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment