That means I get no support for errors occurring when executing the load, i.e. 
I have to check the return value myself and give correct diagnostic message. 
Not a real problem, just more work to do...

But now I know I should avoid ltp-pan, thanks!

Regards
Mats Liljegren
________________________________________
From: [email protected] [[email protected]]
Sent: Monday, March 17, 2014 2:56 PM
To: Mats Liljegren
Cc: [email protected]
Subject: Re: [LTP] Design question around ltp-list

Hi!
> I'd like to create a time-boxed test case, i.e. the test will run for
> a certain amount of time and if nothing goes wrong during this time,
> the test passed.
>
> This would also need to be recursive. So when starting my test, it in
> turn will start some test cases to be used as a system load. These
> loads are simple application that will run until killed. My intention
> was to start them using ltp-pan.
>
> So imagine my test case is started with ltp-pan, where a running time
> has been specified. My test case in turn will use ltp-pan to start an
> application that only exits when killed. What will happen when the
> first ltp-pan invocation times out? Will it automatically kill child
> ltp-pan instances, and they in turn kill the load applications?
>
> Or how are you supposed to do such a test case?

LTP testcases are self-contained and does not depend on any test driver
(i.e. ltp-pan). Moreover ltp-pan may be replaced with a better test
driver in the future.

If you need a background load while your test is running you should fork
a child process from the test itself and do the load from the child. The
test is also responsible for cleaning up later.

All that you need to start a LTP test should be executing the binary
(you may need to modify $PATH, set $LTP_DEV etc. but that should be
all). Also note that these are allready set if you are in the middle of
LTP testcase execution.

Also note that you can start a LTP testcase just by doing exec() with
right testname from another testcase (becase all of the test binaries
are in $PATH).

--
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to