On 5/3/2011 3:47 PM, Ian Lance Taylor wrote:
There is no support for passing options to a test in the dg framework.
You would have to write your own Tcl code to do that.
Note that such tests are somewhat discouraged because not all remote
execution environments support passing command line arguments. It's OK
to do it if the command line argument is optional or if the test can
never work on an embedded system anyhow.
Ian
Thank you for your response. I am trying to write some tests
for GUPC that have two modes of compilation: static and dynamic. In
static environment you specify number of threads you want to run in
compile time, while in dynamic you specify it when you run the
program (prog -n4 args). We have to test both modes and I was thinking
of checking the compile arguments and passing -n4 to _load procedure
for dynamic case. It could be that I can accomplish this with a new
target in dejagnu.
I tried defining upc_load() procedure (the same way gnat_load() is defined)
and possible add all the necessary code to it, but was not successful in
dejagnu calling it.
Nenad