Re: Question about test cases in "mysql-test" directory

Guilhem Bichot <[email protected]> Thu, 13 Dec 2012 08:49:18 +0100
Newsgroups gmane.comp.db.mysql.devel
Message-ID <[email protected]>
Hello,

Weldon Whipple a écrit, On 12/12/2012 23:45:
> On Wed, Dec 12, 2012 at 2:20 PM, Tianyin Xu <[email protected]> wrote:
>> Ok, so the two sets are disjoint.
>>
>> and "mysql-test/t" is kind of basic, and "mysql-test/suite" is more
>> advanced (according to Guilhem, it's created because t is not enough).
>>
> <snip/>
>

> That MIGHT be the case. (The original developers would know for sure.)
>
> I get the feeling, however, that in the beginning, there were few
> enough test cases that it "just seemed natural" to put the tests in a
> single "t" directory, and the expected results in a sibling "r"
> directory.
>
> As the product grew, it MIGHT be that it became difficult to think of
> meaningful test case names that didn't collide with tests already
> present.
>
> Also, as the number of test cases grew, I'm guessing that someone
> noticed that there were groups of related test cases that could be
> categorized (as related), so they decided to give those their own
> subdirectory within the suite subdirectory. (These "suite" directories
> seem to correspond to categories of functionality that has been added
> over time?)
>
> That's just a guess--I'm a latecomer to the MySQL world. ... But as
> I've snooped through the test cases, that's the feeling I get.

Good guess. That's how things happened.

> (It might be that the original test cases WERE in fact basic. Whenever
> I modify the code, however, it is important that EVERY test case in
> the test suite (both t and suite/*/t directories) passes. I want to
> make sure that even the "basic" [early?] test cases pass ...)

Tests in "t" are no more or less basic than those in "suite". Indeed, 
all tests have to pass.


-- 
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe:    http://lists.mysql.com/internals