Re: Question about test cases in "mysql-test" directory
Weldon Whipple <[email protected]> Wed, 12 Dec 2012 15:45:02 -0700
| Newsgroups | gmane.comp.db.mysql.devel |
|---|---|
| Message-ID | <CAB5PnuUn1YPt_0xrRkATQ-VR-3JDLFSdc7_UNikTTe5+JSq8ow@mail.gmail.com> |
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. (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 ...) Feel free to correct any of my misperceptions (anyone) ... W -- MySQL Internals Mailing List For list archives: http://lists.mysql.com/internals To unsubscribe: http://lists.mysql.com/internals