From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <445E84DE.2090209@domain.hid> Date: Sun, 07 May 2006 19:38:06 -0400 From: Jim Cromie MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090104010706000603050606" Subject: [Xenomai-core] more xenotest tweaks List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai-core This is a multi-part message in MIME format. --------------090104010706000603050606 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit based in part on discussions and test-results from Niklaus Giger (thanks) heres another round of tweaks. * -p is changed to -P, which allows .. * -p to be passed thru to latency, exposing that capability * set -m default destination addr to you _may_ have to subscribe in order to successfully send your results. I didnt touch , thats pending.. * -D allows user to change the timestamp format used for files written when -L -N are given on commandline. forex: $ bash -x xeno-test.in -N ./junk -D \--iso-8601=seconds yields Script started, file is ./junk-2006-05-07T18:16:14-0400 and bash -x xeno-test.in -N ./junk -D +%y%m%d.%S-foo yields junk-060507.28-foo the date-stamp echoed by loudly() shell-fn is _not_ subject to this arg, as the added variability might make parsing the file harder. OTOH, existing locale differences (forex between myself and Niklaus) may preclude close parsing anyway. Further tweaks here tbd. * dropped the check for "warning: CONFIG_CPU_FREQ=$CONFIG_CPU_FREQ may be problematic" because the check was very incomplete, and the config info is available for proper analysis * XENOTEST_OPTS envar is now read b4 commandline, so you can set your favorites there, then override them on cmdline. * added -s -h to default latency options, dropped -q if one is gonna bother to send the output, we want the data itself :-} * added 2>&1 into file-less -mailing branch. Niklaus' testruns exposed the lack of output. Im considering some juggling here, to use 'script' if available, something like: script -c "./xeno-test $loadpass $pass $*" | sendit this has advantage of capturing the invocation in a single line at top of the file ie the 'starting' line: Script started on Sam 06 Mai 2006 16:26:44 CEST creating workload using dd if=/dev/hda9 starting ./xeno-test -d /dev/hda9 This patch hasnt been properly tested, my test-box is currently busy, but I did run bash -vx xeno-test.in just to verify that it was ok to segregate option handling code into handle_options, then call it 2x from 2 while loops (1st for envar, 2nd for cmdline), and some of the other tweaks too. --------------090104010706000603050606 Content-Type: text/plain; name="patch-more-xenotest-tweaks" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-more-xenotest-tweaks" Index: scripts/xeno-test.in =================================================================== --- scripts/xeno-test.in (revision 1029) +++ scripts/xeno-test.in (working copy) @@ -12,7 +12,7 @@ -W