* Run a single ada test
@ 2020-07-28 14:08 William Seurer
2020-07-28 14:48 ` Andreas Schwab
2020-07-31 12:57 ` Eric Botcazou
0 siblings, 2 replies; 11+ messages in thread
From: William Seurer @ 2020-07-28 14:08 UTC (permalink / raw)
To: gcc
Is there a way to run a single ada test? The documentation mentions hows to
"run a subset of the tests by specifying which chapter to run" but not
individual tests. I tried this (and some variations)
make -k check-ada RUNTESTFLAGS=gnat.exp=gnat.dg/opt86a.adb
but it ran a whole bunch of tests actually NOT including the one I wanted.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Run a single ada test
2020-07-28 14:08 Run a single ada test William Seurer
@ 2020-07-28 14:48 ` Andreas Schwab
2020-07-28 16:52 ` William Seurer
2020-07-31 12:57 ` Eric Botcazou
1 sibling, 1 reply; 11+ messages in thread
From: Andreas Schwab @ 2020-07-28 14:48 UTC (permalink / raw)
To: William Seurer via Gcc
On Jul 28 2020, William Seurer via Gcc wrote:
> make -k check-ada RUNTESTFLAGS=gnat.exp=gnat.dg/opt86a.adb
gnat.exp isn't a testsuite driver, it's a lib file. You want to use
dg.exp instead.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Run a single ada test
2020-07-28 14:48 ` Andreas Schwab
@ 2020-07-28 16:52 ` William Seurer
2020-07-28 17:02 ` Rainer Orth
2020-07-28 17:04 ` Andreas Schwab
0 siblings, 2 replies; 11+ messages in thread
From: William Seurer @ 2020-07-28 16:52 UTC (permalink / raw)
To: Andreas Schwab, William Seurer via Gcc
On 7/28/20 9:48 AM, Andreas Schwab wrote:
> On Jul 28 2020, William Seurer via Gcc wrote:
>
>> make -k check-ada RUNTESTFLAGS=gnat.exp=gnat.dg/opt86a.adb
> gnat.exp isn't a testsuite driver, it's a lib file. You want to use
> dg.exp instead.
Thanks. That did run the specific test I wanted BUT also ran thousands
more.
# of expected passes 2320
# of unexpected failures 0
# of expected passes 2
# of unexpected failures 1
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Run a single ada test
2020-07-28 16:52 ` William Seurer
@ 2020-07-28 17:02 ` Rainer Orth
2020-07-28 17:04 ` Andreas Schwab
1 sibling, 0 replies; 11+ messages in thread
From: Rainer Orth @ 2020-07-28 17:02 UTC (permalink / raw)
To: William Seurer via Gcc; +Cc: Andreas Schwab, William Seurer
William Seurer via Gcc <gcc@gcc.gnu.org> writes:
> On 7/28/20 9:48 AM, Andreas Schwab wrote:
>> On Jul 28 2020, William Seurer via Gcc wrote:
>>
>>> make -k check-ada RUNTESTFLAGS=gnat.exp=gnat.dg/opt86a.adb
>> gnat.exp isn't a testsuite driver, it's a lib file. You want to use
>> dg.exp instead.
>
>
> Thanks. That did run the specific test I wanted BUT also ran thousands
> more.
>
> # of expected passes 2320
> # of unexpected failures 0
> # of expected passes 2
> # of unexpected failures 1
Just omit the "gnat.dg/" prefix above: the pathnames after some driver
file (dg.exp) are relative to the directory that file lives in.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Run a single ada test
2020-07-28 16:52 ` William Seurer
2020-07-28 17:02 ` Rainer Orth
@ 2020-07-28 17:04 ` Andreas Schwab
2020-07-28 19:45 ` William Seurer
1 sibling, 1 reply; 11+ messages in thread
From: Andreas Schwab @ 2020-07-28 17:04 UTC (permalink / raw)
To: William Seurer; +Cc: William Seurer via Gcc
On Jul 28 2020, William Seurer wrote:
> Thanks. That did run the specific test I wanted BUT also ran thousands
> more.
The acats testsuite doesn't respect RUNTESTFLAGS (it doesn't use the
dejagnu framework). If you only want to run the gnat testsuite, use
check-gnat.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Run a single ada test
2020-07-28 17:04 ` Andreas Schwab
@ 2020-07-28 19:45 ` William Seurer
2020-07-28 19:57 ` Andreas Schwab
0 siblings, 1 reply; 11+ messages in thread
From: William Seurer @ 2020-07-28 19:45 UTC (permalink / raw)
To: Andreas Schwab; +Cc: William Seurer via Gcc
On 7/28/20 12:04 PM, Andreas Schwab wrote:
> On Jul 28 2020, William Seurer wrote:
>
>> Thanks. That did run the specific test I wanted BUT also ran thousands
>> more.
> The acats testsuite doesn't respect RUNTESTFLAGS (it doesn't use the
> dejagnu framework). If you only want to run the gnat testsuite, use
> check-gnat.
There does not appear to be a check-gnat in any of the makefiles.
Closest is "check-gnattools"
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Run a single ada test
2020-07-28 19:45 ` William Seurer
@ 2020-07-28 19:57 ` Andreas Schwab
2020-07-29 14:51 ` William Seurer
0 siblings, 1 reply; 11+ messages in thread
From: Andreas Schwab @ 2020-07-28 19:57 UTC (permalink / raw)
To: William Seurer; +Cc: William Seurer via Gcc
On Jul 28 2020, William Seurer wrote:
> There does not appear to be a check-gnat in any of the makefiles.
See LANG_MAKEFRAGS.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Run a single ada test
2020-07-28 19:57 ` Andreas Schwab
@ 2020-07-29 14:51 ` William Seurer
0 siblings, 0 replies; 11+ messages in thread
From: William Seurer @ 2020-07-29 14:51 UTC (permalink / raw)
To: Andreas Schwab; +Cc: William Seurer via Gcc
On 7/28/20 2:57 PM, Andreas Schwab wrote:
> On Jul 28 2020, William Seurer wrote:
>
>> There does not appear to be a check-gnat in any of the makefiles.
> See LANG_MAKEFRAGS.
>
I see some stuff about that (and check-gnat, too) in some of the
makefile input files but it doesn't seem to do anything when I run
configure (for all languages). Is there some configure option or
environment variable I need to use? Is it documented somewhere?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Run a single ada test
2020-07-28 14:08 Run a single ada test William Seurer
2020-07-28 14:48 ` Andreas Schwab
@ 2020-07-31 12:57 ` Eric Botcazou
2020-07-31 13:26 ` William Seurer
1 sibling, 1 reply; 11+ messages in thread
From: Eric Botcazou @ 2020-07-31 12:57 UTC (permalink / raw)
To: William Seurer; +Cc: gcc
> Is there a way to run a single ada test? The documentation mentions hows to
> "run a subset of the tests by specifying which chapter to run" but not
> individual tests. I tried this (and some variations)
>
> make -k check-ada RUNTESTFLAGS=gnat.exp=gnat.dg/opt86a.adb
>
> but it ran a whole bunch of tests actually NOT including the one I wanted.
make -C gcc -k check-gnat RUNTESTFLAGS="dg.exp=opt86a.adb"
You can omit the "-C gcc" if you run it from the gcc/ build dir of course.
--
Eric Botcazou
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Run a single ada test
2020-07-31 12:57 ` Eric Botcazou
@ 2020-07-31 13:26 ` William Seurer
2020-07-31 13:40 ` Eric Botcazou
0 siblings, 1 reply; 11+ messages in thread
From: William Seurer @ 2020-07-31 13:26 UTC (permalink / raw)
To: Eric Botcazou; +Cc: gcc
On 7/31/20 7:57 AM, Eric Botcazou wrote:
>> Is there a way to run a single ada test? The documentation mentions hows to
>> "run a subset of the tests by specifying which chapter to run" but not
>> individual tests. I tried this (and some variations)
>>
>> make -k check-ada RUNTESTFLAGS=gnat.exp=gnat.dg/opt86a.adb
>>
>> but it ran a whole bunch of tests actually NOT including the one I wanted.
> make -C gcc -k check-gnat RUNTESTFLAGS="dg.exp=opt86a.adb"
>
> You can omit the "-C gcc" if you run it from the gcc/ build dir of course.
>
>
I see check-gnat in some of the makefile input files but I do not see it
in the ones that are built. Is there something needed to specify when
configure is run to get it included?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Run a single ada test
2020-07-31 13:26 ` William Seurer
@ 2020-07-31 13:40 ` Eric Botcazou
0 siblings, 0 replies; 11+ messages in thread
From: Eric Botcazou @ 2020-07-31 13:40 UTC (permalink / raw)
To: William Seurer; +Cc: gcc
> I see check-gnat in some of the makefile input files but I do not see it
> in the ones that are built. Is there something needed to specify when
> configure is run to get it included?
No, this works with some generic magic like for gcc; g++, gfortran and so on.
--
Eric Botcazou
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2020-07-31 13:39 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-28 14:08 Run a single ada test William Seurer
2020-07-28 14:48 ` Andreas Schwab
2020-07-28 16:52 ` William Seurer
2020-07-28 17:02 ` Rainer Orth
2020-07-28 17:04 ` Andreas Schwab
2020-07-28 19:45 ` William Seurer
2020-07-28 19:57 ` Andreas Schwab
2020-07-29 14:51 ` William Seurer
2020-07-31 12:57 ` Eric Botcazou
2020-07-31 13:26 ` William Seurer
2020-07-31 13:40 ` Eric Botcazou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).