From: Date: July 27 2007 12:14pm Subject: Re: IPV6 data type patch List-Archive: http://lists.mysql.com/internals/34909 Message-Id: MIME-Version: 1.0 (Apple Message framework v752.3) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-3-1065616506" Content-Transfer-Encoding: 7bit --Apple-Mail-3-1065616506 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi Milos. On 17 Jul 2007, at 10:05, Milos Prodanovic wrote: > It would be nice to make some functionality tests, and I'm not sure > that I can make > tests of all possible 'use cases', but I'm glad to do tests if you > have some crucial test > that could show usability. Please do make tests. For every check-in of code, we verify on every platform we support that the entire regression suite passes its tests. Any patch is incomplete without tests that show its functionality and give proof that it's not broken accidentally in the future by someone else. As the author of the code, you're better equipped to write its tests than anyone else. We also verify that all lines of code are covered by the test suite, so the tests should exercise every kind of branch in the tests. Your test should intentionally create errors, and catch them. It should show that the freaky edge cases work. It should use new functionality in a greater context to show it works well with others. It will receive a lot of attention, and serve as examples and reference for the documentation team to use when describing the functionality in the manual. In short, the tests are at least as important as the code. - chad After "make", "{ cd mysql-test; ./mtr $optional_specific_test_name; }". Write new queries & directives at "mysql-test/t/${test_name}.test" and write the output at "mysql-test/ r/${test_name}.result". I suggest "type_net_addresses" is a good test name. You may use "-record" to make the result, but don't blindly do it; recording a wrong result is much worse than not having a result. -- Chad Miller, Software Developer chad@stripped MySQL Inc., www.mysql.com Orlando, Florida, USA 13-20z, UTC-0400 Office: +1 408 213 6740 sip:6740@stripped --Apple-Mail-3-1065616506 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) iD8DBQFGqcVv/peCpMTxrLsRApSLAJ0Z5Q57xiIGTnqO2N3+2yNoRAx+7QCfT9Tr +iD4fsulBQUi/XnBD+w0TsM= =7/19 -----END PGP SIGNATURE----- --Apple-Mail-3-1065616506--