public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Laurent Guerby <guerby@acm.org>
To: Zack Weinberg <zack@codesourcery.com>
Cc: Richard Kenner <kenner@vlsi1.ultra.nyu.edu>,
	"gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: Re: ACATS & GCC testsuite
Date: Wed, 02 Apr 2003 23:00:00 -0000	[thread overview]
Message-ID: <1049321838.1235.32.camel@localhost.localdomain> (raw)
In-Reply-To: <87k7ecfx2n.fsf@egil.codesourcery.com>

On Wed, 2003-04-02 at 22:45, Zack Weinberg wrote:
> When developing a patch I frequently sit in a cycle like this:
> 
> <edit edit edit>
> $ make cc1
> $ make check-gcc RUNTESTFLAGS="only/the/subset/I/care/about.exp"
> FAIL: ...
> 
> <repeat>
> 
> I would not mind much if final acceptance testing for patches was done
> on an installed tree, but I'll be unhappy if you break the above.

The first part of packaging ACATS is configuring the source,
know what to tweak and remove in the mass of tests
and track updates in the suite (quite low volume anyway).

Once it is done, running the test is just compiling
support sources (all the tests are using a few
common packages), then looping over the tests
doing gnatmake, run, check for "PASSED" in output.

I'll package the ACATS sources to be suitable
for integration in CVS and provide a simple
contrib script to run and report the status
with an installed compiler.

Any testing framework should be able to pick up the thing
easily from there. As I said in a previous email, I no longer 
intent to figure out configure, Makefile & DejaGNU in build trickery, 
so if someone has the knowledge to add such a thing, please feel free to do so. 
(Plus it will have to be redone if the GCC build structure change
and / or if the Ada runtime change.)

A simple Ada test showing support precompile and then
build'n run a test:

$ gcc -c support.adb
$ gnatmake test_ada
$ ./test_ada
PASSED test_ada


$ cat support.ads
package Support is
   procedure Report (S : in String; Passed : in Boolean);
end Support;
$ cat support.adb
with Ada.Text_IO;
package body Support is
   procedure Report (S : in String; Passed : in Boolean) is
   begin
      if Passed then
         Ada.Text_IO.Put_Line ("PASSED " & S);
      else
         Ada.Text_IO.Put_Line ("FAILED " & S);
      end if;
   end Report;
end Support;
$ cat test_ada.adb
with Support;
procedure Test_Ada is
begin
   Support.Report ("test_ada", True);
end Test_Ada;
$



-- 
Laurent Guerby <guerby@acm.org>

  reply	other threads:[~2003-04-02 22:17 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-28 12:06 Richard Kenner
2003-03-28 13:59 ` Laurent Guerby
2003-04-02 22:17   ` Zack Weinberg
2003-04-02 23:00     ` Laurent Guerby [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-03-31  5:17 Richard Kenner
2003-03-30 23:14 Robert Dewar
2003-03-28 18:52 Richard Kenner
2003-03-28 19:19 ` Daniel Jacobowitz
2003-03-28 15:00 Robert Dewar
2003-03-28 14:53 Richard Kenner
2003-03-28 14:57 ` Matthieu Moy
2003-03-28 14:59 ` Laurent Guerby
2003-03-28 14:47 Richard Kenner
2003-03-28 14:50 ` Laurent Guerby
2003-03-28 11:50 Richard Kenner
2003-03-28 12:03 ` Laurent Guerby
2003-03-28 18:30   ` Daniel Jacobowitz
2003-03-29 11:47     ` Laurent Guerby
2003-03-28 16:29 ` Daniel Jacobowitz
2003-03-27  9:20 Ada: Bootstrap failure on i386-unknown-freebsd4.7 Michael Ritzert
2003-03-27 23:24 ` Laurent Guerby
2003-03-27 23:29   ` ACATS & GCC testsuite (Was Re: Ada: Bootstrap failure on i386-unknown-freebsd4.7) Arnaud Charlet
2003-03-27 23:38     ` ACATS & GCC testsuite Laurent Guerby
2003-03-28  4:07       ` Geert Bosch
2003-03-28 11:35         ` Laurent Guerby
2003-03-28 19:48           ` Geert Bosch
2003-03-28 21:57             ` Laurent Guerby
2003-03-29 13:28               ` Arnaud Charlet
2003-03-29 13:45                 ` Laurent Guerby
2003-03-30 14:47                   ` Arnaud Charlet
2003-03-30 14:55                     ` Andreas Jaeger
2003-03-30 15:46                       ` Arnaud Charlet
2003-03-30 22:08                         ` Andreas Jaeger
2003-03-31  7:22                           ` Kai Henningsen
2003-03-30 15:31                     ` Laurent Guerby
2003-03-30 19:10                       ` Arnaud Charlet
2003-03-30 22:09                         ` Laurent Guerby

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1049321838.1235.32.camel@localhost.localdomain \
    --to=guerby@acm.org \
    --cc=gcc@gcc.gnu.org \
    --cc=kenner@vlsi1.ultra.nyu.edu \
    --cc=zack@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).