tag:blogger.com,1999:blog-6826135810672925736.post2035842699307822012..comments2009-05-01T17:17:08.519+02:00Comments on The blue point: Grouping .test files into suitesMagnushttp://www.blogger.com/profile/12992315766189193862noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6826135810672925736.post-26467292859247128422008-06-24T16:37:00.000+02:002008-06-24T16:37:00.000+02:001. Yes, it should be supported to point mysql-test...1. Yes, it should be supported to point mysql-test-run.pl to your own directory(suite) with .test and .result files. This is included in the next version.<BR/><BR/>2. I've more or less resolved the issue with that you have to cd to mysql-test/ before you run mtr.pl, but it still has a check that you run it from mysql-test/ since we don't have time to really test any other ways to run it. <BR/><BR/>Don't think a --base is needed, but maybe you can describe what it should do?<BR/><BR/>Hope you find mysql-test-run.pl useful.Magnushttps://www.blogger.com/profile/12992315766189193862noreply@blogger.comtag:blogger.com,1999:blog-6826135810672925736.post-82199094748152178232008-06-06T05:37:00.000+02:002008-06-06T05:37:00.000+02:00Timely reading for me as I've just been trying to ...Timely reading for me as I've just been trying to get mysql-test-run.pl to work with a set of unit tests that I am devising to test some triggers and stored functions/procedures in a recent MySQL custom database. <BR/><BR/>While casting around for a unit testing framework, when I found mysqltest and mysql-test-run.pl, I thought "What could be better than to use what the developers of the engine are using themselves?"<BR/><BR/>My problem has been the paucity of examples of how to use mysql-test-run.pl for anything other than the tests of the engine that reside in the same directory structure. It seems that the perl script MUST run in the directory in which it is installed, and that you can not point it at your own directory of tests.<BR/><BR/>I just started looking at the Perl source to see how to create a new --base option to pass down to the call to mysqltest. I think this is the way to go. Do you agree? Can you advise?malcookhttps://www.blogger.com/profile/13427148069214826368noreply@blogger.com