All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Cromie <jim.cromie@domain.hid>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] expected output and runtime of switchtest ?
Date: Thu, 10 Aug 2006 14:38:48 -0600	[thread overview]
Message-ID: <44DB9958.10109@domain.hid> (raw)
In-Reply-To: <44DB1865.90004@domain.hid>

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

Jan Kiszka wrote:
> Jim Cromie wrote:
>   
>> soekris:/usr/xenomai/testsuite/switchtest# modprobe xeno_switchtest
>> [  160.221018] Xenomai: starting RTDM services.
>> soekris:/usr/xenomai/testsuite/switchtest#
>> soekris:/usr/xenomai/testsuite/switchtest# switch -n
>> soekris:/usr/xenomai/testsuite/switchtest# switch rtk0
>> cpu 0: 498
>> cpu 0: 998
>> cpu 0: 1498
>> cpu 0: 2000
>> cpu 0: 2496
>> cpu 0: 2998
>> cpu 0: 3498
>> cpu 0: 3998
>> cpu 0: 4500
>>
>> ...
>>
>> This prog has been running for atleast 1/2 hr,
>> with minimum args..
>>
>> what should it be doing ?
>>     
>
> This is a regression test. You should see an error message or a system
> crash if something goes wrong. The output above looks ok (number of
> passed loops, kind of lifesign).
>
>   
OK thanks.

FWIW, I noted that xeno-test is not running these:
- switchbench
- switchtest
- irqbench

Im not sure they belong in xeno-test though, since they dont
appear to produce output that shows good vs bad performance,
only an informal 'sanity' check.

And technically, dont regression tests have to yield
 a PASS / FAIL decision ?  ;-)


Speaking more broadly, there are 3 possible kinds of test-progs

- regression tests
    PASS / FAIL - either by exit(rc),
       or by printf( "%s\n", rc ? "not-ok" : "ok")
       see perl's regression test suite ( 100k separate tests )
       usually test details, are not tutorial

- performance tests
    progs stress xenomai, print performance data
    should help see performance problems, expose bugs
    xeno-test aims to collect performance data
    performance data must be expressive
       (switchtest is perhaps insufficient here)

- examples / tutorials
    ex: satch.c 
    simple, clear progs (low feature clutter, etc)
    Id like to see all demo/**/ progs in single dir
       forex satch-native, satch-vxworks, etc ..
       makes for easier browsing
    simple makefile
       builds out-of-tree
       handles kernel-modules and user-progs
       (Ive seen some clean ones, cant find now.  Mine are crufty:-(
    'patterns' of usage
       IWBGreat if we had common usage patterns isolated,
       named, and described


Towards this last item, Ive done 2 things:

- poached code from Hannes Mayer :-)
    http://www.captain.at/xenomai.php
    task-timers.c does periodic timer 3 ways:
       sleeper, waiter, alarm.

- scrounged old rtai/fusion code (ls -l says Jul 05 ;-)
    cleaned up, 1/2 compile now
    maybe theres examples-tutorials-patterns fodder in here.


attached tarball has these in 2 top-level dirs.
Id like to see if theres a place for them long-term, and clean
them up so theyre correct and helpful.


> Jan
>

thanks
-jimc

[-- Attachment #2: xeno-examples-tuts.tgz --]
[-- Type: application/gzip, Size: 16676 bytes --]

  reply	other threads:[~2006-08-10 20:38 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-10  1:18 [Xenomai-help] expected output and runtime of switchtest ? Jim Cromie
2006-08-10 11:28 ` Jan Kiszka
2006-08-10 20:38   ` Jim Cromie [this message]
2006-08-11 16:25     ` [Xenomai-core] Test, benchmark, demo frameworks (was: expected output and runtime of switchtest ?) Jan Kiszka
2006-08-11 22:45       ` [Xenomai-core] Re: Test, benchmark, demo frameworks Jim Cromie
2006-08-16  7:12         ` Jan Kiszka
2006-08-18 16:54       ` [Xenomai-core] Re: Test, benchmark Jim Cromie
2006-08-18 17:19         ` Gilles Chanteperdrix
2006-08-18 17:48           ` Gilles Chanteperdrix
2006-08-18 18:12           ` Jim Cromie
2006-08-18 18:23             ` Jan Kiszka
2006-08-18 19:10             ` Gilles Chanteperdrix
2006-08-18 21:28             ` Gilles Chanteperdrix
2006-08-18 18:02         ` Jan Kiszka
2006-08-18 18:28           ` Jim Cromie
2006-08-19  7:35             ` Jan Kiszka
2006-08-19 12:48               ` Gilles Chanteperdrix
2006-08-13 17:11     ` [Xenomai-core] expected output and runtime of switchtest ? 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=44DB9958.10109@domain.hid \
    --to=jim.cromie@domain.hid \
    --cc=jan.kiszka@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.