This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: adding an argument for test execution in testsuite


Nenad Vukicevic <nenad@intrepid.com> 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 that
> is similar to "dg-skip-if" syntax but would add a run-time
> option if there is a match.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]