This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: adding an argument for test execution in testsuite
- From: Ian Lance Taylor <iant at google dot com>
- To: Nenad Vukicevic <nenad at intrepid dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 03 May 2011 15:47:05 -0700
- Subject: Re: adding an argument for test execution in testsuite
- References: <4DC06462.6000107@intrepid.com>
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