public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Stan Shebs <shebs@apple.com>
To: Nathanael Nerode <neroden@doctormoo.dyndns.org>
Cc: gcc@gcc.gnu.org
Subject: Re: Testsuite reorganization, documentation, cleanup?
Date: Mon, 07 Oct 2002 16:52:00 -0000	[thread overview]
Message-ID: <3DA20379.6090907@apple.com> (raw)
In-Reply-To: <20021005044421.GA11187@doctormoo.dyndns.org>

Nathanael Nerode wrote:

>Looking at the testsuite, it's rather confusing.  Some directories are
>documented in READMEs; many aren't.  There are multiple organizational
>systems.  There are multiple drivers, many of which seem very similar;
>one suspects redundancy.
>
Since most of the expect scripts run tests on *.c and suchlike (since
99% of the tests don't need special scripts), much of the organization
is forced by the need to have all source files in a directory treated
alike.

There have been rounds of testsuite cleanup in the past, but in some
cases the rationale wasn't written down, and it's not always as obvious
5-10 years later.  For instance, the theory of dates for a test name
was that that the test didn't necessarily have a "theme" or specific
feature that was being tested, so using the date is a simple way to
generate a canonical name.

>
>  Beneath that, a subdivision by correctness, code quality, or compiler
>  behavior quality.
>
Code quality tests are pretty rare, and I don't think we have enough
of them to know how to organize sensibly yet.  I've been thinking
about how to do this kind of test off and on, no doubt there will be
much tcl code involved. :-)

>
>  Beneath that, subdivision by category where appropriate (abi,
>  templates, etc.)
>
>  Beneath that, one directory for each variety (compile, execute, fail to
>  compile, produce warning 'blah')
>
I don't like this level of subdivision very much.  It's needed for
torture tests because they don't have any info internal to the file,
but in general I think test instructions instructions for a file should
be in the file, not implicit in some detail of its pathname.

>2. What do the various existing undocumented directories represent?
>
>For instance, why are there 'gcc.c-torture', 'gcc.dg',
>and 'gcc.misc-tests'?  What are the tests in g++.dg in the subdirectories
>'bprob','debug','gcov','opt',and 'tls', and why aren't they mentioned in
>g++.dg/README ?  
>
Documentation standards for testsuite have been pretty lax.  More
general description would be good, and if at some point, the doc has
to say "this sounds stupid, but has to be this way for hysterical
reasons", that's your clue that a reorg is desirable.

Stan



  parent reply	other threads:[~2002-10-07 21:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-05  0:06 Nathanael Nerode
2002-10-05 13:21 ` Joseph S. Myers
2002-10-07 16:42 ` Mike Stump
2002-10-08  1:16   ` Hans-Peter Nilsson
2002-10-07 16:52 ` Stan Shebs [this message]
2002-10-08  1:19   ` Nathanael Nerode
2002-10-08  2:12     ` Hans-Peter Nilsson
2002-10-08 10:32       ` Janis Johnson
2002-10-08 11:09       ` Stan Shebs
2002-10-09 13:16         ` Nathanael Nerode
2002-10-21 12:32           ` Janis Johnson
2002-10-09  1:46 ` Ben Elliston

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=3DA20379.6090907@apple.com \
    --to=shebs@apple.com \
    --cc=gcc@gcc.gnu.org \
    --cc=neroden@doctormoo.dyndns.org \
    /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).