This directory contains all of the test cases for the MySQL Test Suite marked up in XML. To convert these test cases from XML into 'mysqltest' format, one needs an XSL translator installed on their system. At MySQL, we use Sablotron (http://www.gingerall.com/). Once installed, conversion happens with a command like this: sabcmd xsl/mysqltest.xsl < tests/sel000001.xml > sel000001.test The file 'sel000001.test' contains the plain text conversion that is to be fed into the 'mysqltest' program. Below is an example of a test case marked up in XML; illustrating all of the XML mark-up currently supported in our 'mysqltest.xsl' stylesheet. ---------------------------------------------------- This test will monkey around trying to kill mysqld. SELECT y FROM foo WHERE bar='2' INSERT INTO foo VALUES (y='2') WHERE bar='1' ---------------------------------------------------- The converted (mysqltest format) output of this source XML file looks like: ---------------------------------------------------- # sel000001 # # Versions # -------- # 3.22 # 3.23 # # Description # ----------- # This test will monkey around trying to kill mysqld. # connect(Test_Connect1, MyHostName, Matt, MattPass, MyDB, 3306, MyDB.sock) connection Test_Connect1 INSERT INTO foo VALUES (y='2') WHERE bar='1'; @sel000001.result SELECT y FROM foo WHERE bar='2'; ----------------------------------------------------