On Thu, May 19, 2011 at 10:40 AM, Cyril Hrubis <[email protected]> wrote:
> Hi!
...
> Executing binaries from local directory likely won't work after the test
> is installed. Do we have some helper fuctions for that; Garrett?
[Un]fortunately we don't (I say that because writing something
functional would be kind of a pain because we'd need to replicate what
tar does with that file mode, permissions bits, and other fun security
attributes in order to be complete).
Does this need to be run from the current working directory, or
can it be picked up from $PATH ? If the latter is ok, then all you
need to do is add $LTPROOT/testcases/bin to $PATH (which should be
done already by runltp) and use execvp, or you could play tricks and
lookup the dirname of the realpath, etc of the testcase (argv[0]), and
use that in the execle, etc call.
Thanks!
-Garrett
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list