This series of patches allows the pass/fail criteria to be defined in a command
line argument. (-c)
librttest.c declares a global variable pass_criteria which is defined as extern
in librttest.h
The parsing is done as usual in function rt_init.
To be as comprehensive as possible, pass_criteria is declared as a double so
some tests need to cast it to integer before use.
The below tests have been modified to use this new feature:
sched_latency.c
tc-2.c
hrtimer-prio.c
pi_perf.c
async_handler.c and async_handler_jk.c
matrix_mult.c
pthread_kill_latency.c
prio-preempt.c
Notes:
- default values have not been changed
- it is always tests' responsibility to handle default values
- to have a consistent interface, periodic_cpu_load_single.c's arg "-c
howmanyloops" was changed to -l.
This patch series also features a minor fix in librttest.c in args parsing
switch case.
In a next series, I will provide a feature that parses a single config file
including the pass/fail criteria for all tests.
This will make life easier for people wanting to define test profiles.
Gilles.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list