Hi,
On Fri, 2009-02-13 at 12:20 +0100, Juergen Beisert wrote:
> Hi list,
>
> would it be possible to use 'pan' to monitoring a test? The timeout option
> (-t) would be a nice feature to force a kill after a specified amount of time
> to a test that might run amok (at least in my automated test environment
> without a human operator in front of the system under test).
Yes, you have that. See:
./runltp -h
-t DURATION Execute the testsuite for given duration. Examples:
-t 60s = 60 seconds
-t 45m = 45 minutes
-t 24h = 24 hours
-t 2d = 2 days
-T REPETITION Execute the testsuite for REPETITION no. of times
> But when I'm using the -t option it runs the given command n times until the
> time is over. Is there a trick to let 'pan' run the given command only one
> times?
You can use PAN to run the tests for a definite period of time say 24
hours. In that case, your test bucket will repeat themselves and will
stop only at 24 hours. It might happen that your N tests will make L
loops and may stop in the middle of L+1 loop as time has reached.
If you want them to run for exact/discrete loops, then use -T option.
Time taken will depend upon how many tests you are executing, time taken
by individual tests & your machine“s CPU power.
However, there is no option to say to PAN to run a test just once, but
keep running it for say T minutes/hours. But this option is enabled
separately inside the SYSCALLS tests of LTP by code inside those tests.
See:
$ ./testcases/kernel/syscalls/dup3/dup3_01 -h
-c n Run n copies concurrently
-e Turn on errno logging
-f Turn off functional testing
-h Show this help screen
-i n Execute test n times
-I x Execute test for x seconds
-p Pause for SIGUSR1 before starting
-P x Pause for x seconds between iterations
-t Turn on syscall timing
Regards--
Subrata
>
> Regards,
> Juergen
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list