I stepped for a moment and started to think about these wrappers
testing smaller, individual user space tools, such as crontab, time,
among others. It seems to me that such tests belong to a larger linux
test suite, such as LTP. Otherwise we'll end up with a large amount of
wrappers for tiny tests, which probably is not the granularity we're
aiming for.

So Poornima, Paul, Rajeev and the other folks - did you guys consider
to contribute such tests to LTP, for example?

On Sat, Jan 12, 2013 at 12:48 PM, Paul Davies C <[email protected]> wrote:
> Description:
>
>
> time runs the program COMMAND with any given arguments . When COMMAND
> finishes, time displays information about resources used by COMMAND (on the
> standard error output, by default). If COMMAND exits with non-zero status,
> time displays a warning message and the exit status. time can be used to
> track the real,system and user time of COMMAND.
>
>
> Dependent Binaries:
>
> /usr/bin/time
>
>
> Approach:
>
>
> Create a custom python script which will be given as input to time package.
>
> This custom python script will record its own resource usage statistics in
> temporary file.
>
> The time package is also made to store the resource usage statistics using
> its switches  of the custom python script in another file.
>
> The values in the above mentioned files are compared to verify the correct
> working of time.
>
> A custom shell script is also made so that the real time given by the time
> can be confirmed.
>
> This custom shell script has nothing except sleep command.
>
> Switches to be tested :
>
> time -p (lists real ,user and system time0
>
> time -v(Outputs an elaborated resource usage statistics)
>
> Test:
>
> time -p:
>
> Run time -p with custom shell script.
>
> Confirm the "real time" output with that of argument to sleep in custom
> shell script.
>
> time -v:
>
> Run time -v with custom python script.
>
> Compare the values in two output files generated by the time and the custom
> python script.
>
> Clean Up:
>
> Clean all the scripts/output files generated by the test
>
> --
> Regards,
> Paul Davies C
> vivafoss.blogspot.com
>
> _______________________________________________
> Autotest-kernel mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/autotest-kernel



-- 
Lucas

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to