maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #07675
Re: doubt about mdev 4682 - tests
-
To:
maria-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Hartmut Holzgraefe <hartmut@xxxxxxxxxx>
-
Date:
Thu, 04 Sep 2014 08:19:22 +0200
-
In-reply-to:
<CAH3kUhGBePKsFccuoi2e26R-jisoJ8xuZdzuFXpSCQxR=M1+cA@mail.gmail.com>
-
Organization:
SkySQL AB
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
On 09/04/2014 06:21 AM, Roberto Spadim wrote:
> my doubt is... i was trying to understand how could i create tests,
> since the result of statistic isn't deterministic
> how should i execute a test case like this?
there is very simple/limited support for this with the --replace-...
commands in mysqltest, see:
http://dev.mysql.com/doc/mysqltest/2.0/en/writing-tests-output-postprocessing.html
http://dev.mysql.com/doc/mysqltest/2.0/en/mysqltest-commands.html#idm47690956575440
http://dev.mysql.com/doc/mysqltest/2.0/en/mysqltest-commands.html#idm47690956575440
or you could wrap this up in a stored procedure call
and check for expected value ranges in there ...
--
Hartmut Holzgraefe, Principal Support Engineer (EMEA)
SkySQL - The MariaDB Company | http://www.skysql.com/
References