All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Cromie <jim.cromie@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] [patch] xeno-test email addition
Date: Tue, 18 Apr 2006 11:32:26 -0400	[thread overview]
Message-ID: <4445068A.8000008@domain.hid> (raw)
In-Reply-To: <44444AB2.9020305@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]

Jim Cromie wrote:
> Niklaus Giger wrote:
>> Hi
>>
>> Following a suggestion from Philippe Gerum I propose to collect and 
>> prepare like this:
>>
>> a) Make it easy to collect information
>>
>> add -s/-c option to xeno-test, help text would look like -s         
>> send output of xeno-test to xeno-stat@domain.hid
>> -c <name>  if -s, send also kernel config file to xeno-stat@domain.hid
>>   
> attached patch adds new -m -M flags for xeno-test, (-s flag is taken, 
> for statistics)
> former for a fixed addy (to be patched later), latter taking any email 
> as arg.
>
> I didnt add -c <name>, since xeno-test already does something similar;
> if you build with CONFIG_IKCONFIG_PROC=y, xeno-test greps XENO out of 
> /proc/config.gz
> (probably needs a few more grep terms, and perhaps a -verbose mode which
> cats the whole thing.)
>
> The -M option works, since I just received an email Id sent earlier,
> but I also sent one to xenomai-core, and it hasnt shown up yet.
> I suspect that the mail looks like spam, and has been rejected,
> since my hostname is not a real FQDN.
> So Im not so sure that email is the best way here, but it is 
> conceptually simple.



Oof.  Now attached.

[-- Attachment #2: patch-mail --]
[-- Type: text/plain, Size: 1495 bytes --]

Index: scripts/xeno-test.in
===================================================================
--- scripts/xeno-test.in	(revision 943)
+++ scripts/xeno-test.in	(working copy)
@@ -17,6 +17,8 @@
   -L	     	writes to logfile (default "test-`uname -r`") (via script)
   -N <name>	same as -L, but prepend "$name-" (without -L, logname="$name-")
 		prepending allows you to give a full path.
+  -m		sends output file to xeno-test@domain.hid
+  -M <email>	sends output file to given addy
 
   # following options are passed thru to latency, klatency
   -s	print statistics of sampled data (default on)
@@ -136,8 +138,11 @@
 logprefix=
 prepost=	# command to run pre, and post test (ex ntpq -p)
 
-while getopts 'd:shqT:l:H:B:uLN:w:W:p:' FOO ; do
+email='xeno-test@domain.hid'
+sendit=
 
+while getopts 'd:shqT:l:H:B:uLN:w:W:p:mM:' FOO ; do
+
     case $FOO in
 	s|h|q)
 	    pass="$pass -$FOO" ;;
@@ -166,6 +171,11 @@
 	p)
 	    prepost=$OPTARG 
 	    loadpass="$loadpass -p '$OPTARG'"  ;;
+	M)
+	    email=$OPTARG 
+	    sendit=1 ;;
+	m)
+	    sendit=1 ;;
 	?)
 	    myusage ;;
     esac
@@ -179,6 +189,10 @@
     # restart inside a script invocation, passing all
     date=`date +%y%m%d.%H%M%S`
     script -c "./xeno-test $loadpass $pass $*" "$logprefix$logfile-$date"
+    if [ $sendit == 1 ]; then
+	echo "mailing $logprefix$logfile-$date to $email"
+	mail -s 'xeno-test results' $email < "$logprefix$logfile-$date"
+    fi
 else
     if [ "$altwork" != "" ]; then
 	mkload() { exec $altwork; }

  reply	other threads:[~2006-04-18 15:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-17  8:47 [Xenomai-core] [RFC] collecting xenomai statistics Niklaus Giger
2006-04-17 21:13 ` Jan Kiszka
2006-04-18  2:10 ` Jim Cromie
2006-04-18 15:32   ` Jim Cromie [this message]
2006-04-18 15:58     ` [Xenomai-core] [patch] xeno-test email addition Philippe Gerum
2006-04-19  3:55       ` Romain Lenglet
2006-04-19  9:01         ` Philippe Gerum
2006-04-19 12:52           ` Jim Cromie
2006-04-20 21:01             ` Philippe Gerum
2006-04-18 17:02   ` [Xenomai-core] [RFC] collecting xenomai statistics Gilles Chanteperdrix
2006-04-18 17:15   ` Gilles Chanteperdrix
2006-04-18 17:39 ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4445068A.8000008@domain.hid \
    --to=jim.cromie@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.