From: Gilles Chanteperdrix MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="oL3e7Rqyzf" Content-Transfer-Encoding: 7bit Message-ID: <17671.39329.255070.115135@domain.hid> Date: Wed, 13 Sep 2006 07:39:45 +0200 Subject: Re: [Xenomai-core] [patch] fix xeno-test for busybox In-Reply-To: <4506E7AC.5090508@domain.hid> References: <4506E6CD.5050302@domain.hid> <4506E7AC.5090508@domain.hid> List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: xenomai-core --oL3e7Rqyzf Content-Type: text/plain; charset=us-ascii Content-Description: message body and .signature Content-Transfer-Encoding: 7bit Jan Kiszka wrote: > Jan Kiszka wrote: > > Hi, > > > > I just tried to fire up xeno-test on a busybox system - without success. > > Reason: missing getopts. But busybox initial test checks for something > > else, namely getopt. The attached patch should fix this it, also taking > > into account that getopts in a shell built-in, not an applet. > > > > Another quirk: switchtest runs with hard-wired -T 120... Could you try the attached patch ? -- Gilles Chanteperdrix. --oL3e7Rqyzf Content-Type: text/plain Content-Disposition: inline; filename="xeno-test-timeout.diff" Content-Transfer-Encoding: 7bit Index: scripts/xeno-test.in =================================================================== --- scripts/xeno-test.in (revision 1599) +++ scripts/xeno-test.in (working copy) @@ -24,6 +24,8 @@ -v verbose -M sends output to given addr -m sends output to xenomai-data@domain.hid + -T do not run each test for more than seconds (defaults + to 120 seconds) -U uploads output to given URL -D alternate options to date, for timestamp (dflt: @@ -31,7 +33,6 @@ -s print statistics of sampled data (default on) -h print histogram of sampled data (default on, implies -s) -q quiet, dont print 1 sec sampled data (default on, off if !-T) - -T (default: 120 sec) -l (default 21) -H (default 100) -B (default 1000 ns) @@ -186,10 +187,11 @@ fi } +timeout=120 run_w_load() { local opts="$*"; - [ "$opts" = '' ] && opts='-sh -T 120' + [ "$opts" = '' ] && opts="-sh -T $timeout" boxinfo loudly generate_loads $workload @@ -201,7 +203,7 @@ loudly ./run -- $XENOT_LATENCY $opts -t2 '# latency' ) ( cd `dirname $0`/../testsuite/switchtest - loudly ./run -- -T 120 $XENOT_SWITCHTEST '# switchtest' + loudly ./run -- -T $timeout $XENOT_SWITCHTEST '# switchtest' ) ( cd `dirname $0`/../testsuite/switchbench loudly ./run -- -h $XENOT_SWITCHBENCH '# switchbench' @@ -280,9 +282,11 @@ # latency passthrus s|h|q) pass="$pass -$FOO" ;; - T|l|H|B|p) + l|H|B|p) pass="$pass -$FOO $OPTARG" ;; + T) timeout=$OPTARG;; + # workload related d) device=$OPTARG --oL3e7Rqyzf--