git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Test names
@ 2006-09-05  0:10 Jakub Narebski
  2006-09-05  8:28 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Narebski @ 2006-09-05  0:10 UTC (permalink / raw)
  To: git

In t/README it is written:

> The test files are named as:
>
>         tNNNN-commandname-details.sh
>
> where N is a decimal digit.
>
> First digit tells the family:
>
>         0 - the absolute basics and global stuff
> [...]
>         7 - the porcelainish commands concerning the working tree

There are now some test which have 8 or 9 as first digit (e.g.
t8002-blame.sh, t9001-send-email.sh). What is the family for them?
What number for example gitweb test should have?

> Second digit tells the particular command we are testing.

Is there any naming rule, or just increment it by one when adding new test
in the same family?

> Third digit (optionally) tells the particular switch or group of switches
>  we are testing.

What tells the fourth digit?
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Test names
  2006-09-05  0:10 Test names Jakub Narebski
@ 2006-09-05  8:28 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2006-09-05  8:28 UTC (permalink / raw)
  To: Jakub Narebski; +Cc: git

Jakub Narebski <jnareb@gmail.com> writes:

> In t/README it is written:
>...
> Is there any naming rule, or just increment it by one when adding new test
> in the same family?
>
>> Third digit (optionally) tells the particular switch or group of switches
>>  we are testing.
>
> What tells the fourth digit?

Nothing other than just to make them aline up and ordered
nicely.

The rule was outlined long time ago but not strictly followed
(primarily because was done when git was mostly core, and it did
not anticipate the proliferation of Porcelain-ish wrappers, so
it was rather hard to follow).  I'd suggest you to declare that
t92xx- series are for gitweb, and organize the tests in that
namespace nicely.  Also you might want to see what Eric did for
the subversion interface tests (60d02cc declares that t91xx-
series are SVN tests and gives an easy way to skip heavier tests
on git-svn).

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-05  8:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-05  0:10 Test names Jakub Narebski
2006-09-05  8:28 ` Junio C Hamano

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 NNTP newsgroup(s).