[qmtest] command.ExecTest & PATH
Mark Mitchell
mark at codesourcery.com
Fri Jan 4 16:06:48 UTC 2002
--On Friday, January 04, 2002 03:44:41 PM +0300 Vladimir Prus
<ghost at cs.msu.su> wrote:
>
> 1. Is there a way to reference context variables inside program name?
> Inside parameter list? I'd say this approach to be the best, since I'd
> like the ability to use working-copy relative names in parameters.
> 2. Is is possible to create a resource that will set PATH accordingly?
> Will that change affect the path where command.ExecTest looks for the
> binary?
I think you could use command.ShellCommandTest, taking advantage of the
fact that all context variables are available in the environment for the
child process.
For example, suppose your working directory is in:
/path/to/dir
Then, you could do:
qmtest run -c root=/path/to/dir
and use a command.ShellCommandTest that looks like:
${QMV_root}/bin/my_program arg1 arg2 arg3
There will be a new version of QMTest ready in a week or so with a
number of minor bug fixes and improvements.
Thanks for trying QMTest!
--
Mark Mitchell mark at codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the qmtest
mailing list