Re: adding an argument for test execution in testsuite

2011-05-12 Thread Nenad Vukicevic
It is unfortunate that UPC program cannot use dg-additional-sources as we would need to change our run-time to support this option. By the time we reach "main" run-time is already initialized to support specified number of threads. One of the options might be to define a default number of threads

Re: adding an argument for test execution in testsuite

2011-05-04 Thread Janis Johnson
On 05/04/2011 11:21 AM, Nenad Vukicevic wrote: > It seems that I fixed my problem by defining remote_spawn > procedure (and fixing the order of loading libraries :) ) in my > own upc-dg.exp file and adding a line to it that append > additional arguments to the command line: "append commandline > $

Re: adding an argument for test execution in testsuite

2011-05-04 Thread Nenad Vukicevic
It seems that I fixed my problem by defining remote_spawn procedure (and fixing the order of loading libraries :) ) in my own upc-dg.exp file and adding a line to it that append additional arguments to the command line: "append commandline $upc_run_arguments". global $upc_run_arguments is getti

Re: adding an argument for test execution in testsuite

2011-05-04 Thread Ian Lance Taylor
Nenad Vukicevic writes: > 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 > pro

Re: adding an argument for test execution in testsuite

2011-05-04 Thread Nenad Vukicevic
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 argum

Re: adding an argument for test execution in testsuite

2011-05-03 Thread Ian Lance Taylor
Nenad Vukicevic writes: > Is it possible to add an argument to the test in the > execution phase of the testsuite? I am looking into > some test cases where number of threads to run must > be provided on the invocation line of the test if not > specified during the test compilation. Something tha

adding an argument for test execution in testsuite

2011-05-03 Thread Nenad Vukicevic
Is it possible to add an argument to the test in the execution phase of the testsuite? I am looking into some test cases where number of threads to run must be provided on the invocation line of the test if not specified during the test compilation. Something that is similar to "dg-skip-if" syntax