[Maria-developers] mysql test question
Hello, I was wondering if there was a way to run a mysql-test on with a prebuilt data directory. If so, can you point me to some example? Thanks Rich Prohaska
Am 05.04.2013 22:24, schrieb Rich Prohaska:
I was wondering if there was a way to run a mysql-test on with a prebuilt data directory. If so, can you point me to some example?
i can not imageine how this could work a automated test is based on a specific state of whatever followed by a action and defined state after the action if you have a unknown state of the data directory you would have predictable results
i am interested in writing upgrade tests. we fixed a bug in our storage engine that executed some upgrade code for tables created in a prior version of our software. i would like to test this bug fix by running the new software on a data directory from the prior release. any suggestions on how to approach this? thanks On Fri, Apr 5, 2013 at 4:29 PM, Reindl Harald <h.reindl@thelounge.net>wrote:
I was wondering if there was a way to run a mysql-test on with a
Am 05.04.2013 22:24, schrieb Rich Prohaska: prebuilt data directory. If so, can you point me
to some example?
i can not imageine how this could work
a automated test is based on a specific state of whatever followed by a action and defined state after the action
if you have a unknown state of the data directory you would have predictable results
Hi, Rich! On Apr 05, Rich Prohaska wrote:
i am interested in writing upgrade tests. we fixed a bug in our storage engine that executed some upgrade code for tables created in a prior version of our software. i would like to test this bug fix by running the new software on a data directory from the prior release. any suggestions on how to approach this? thanks
To run that once, you can use --extern switch of the mtr, although I'd expect that many tests wouldn't work with it. But generally the tests like yours are done in mysql-test by having the old data files in the std_data directory and copying them into the datadir in the test file. See, for example, the test for BUG#36055 in the repair.test file. Regards, Sergei
Thanks for the pointer! On Fri, Apr 5, 2013 at 5:35 PM, Sergei Golubchik <serg@askmonty.org> wrote:
Hi, Rich!
i am interested in writing upgrade tests. we fixed a bug in our storage engine that executed some upgrade code for tables created in a prior version of our software. i would like to test this bug fix by running
On Apr 05, Rich Prohaska wrote: the
new software on a data directory from the prior release. any suggestions on how to approach this? thanks
To run that once, you can use --extern switch of the mtr, although I'd expect that many tests wouldn't work with it.
But generally the tests like yours are done in mysql-test by having the old data files in the std_data directory and copying them into the datadir in the test file. See, for example, the test for BUG#36055 in the repair.test file.
Regards, Sergei
participants (3)
-
Reindl Harald
-
Rich Prohaska
-
Sergei Golubchik