*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 :


   1.

   time -p (lists real ,user and system time0
   2.

   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

Reply via email to