Documentation Home
The MySQL Test Framework, Version 2.0
Download this Manual
PDF (US Ltr) - 0.6Mb
PDF (A4) - 0.6Mb
EPUB - 132.2Kb


The MySQL Test Framework, Version 2.0  /  ...  /  Specifying the Required Binary Log Format for Individual Test Cases

4.12.2 Specifying the Required Binary Log Format for Individual Test Cases

To specify within a test case that a particular binary log format is required, include one of the following lines to indicate the format:

--source include/have_binlog_format_row.inc
--source include/have_binlog_format_statement.inc
--source include/have_binlog_format_mixed.inc

The following files can be used for tests that support two binary log formats:

--source include/have_binlog_format_mixed_or_row.inc
--source include/have_binlog_format_mixed_or_statement.inc
--source include/have_binlog_format_row_or_statement.inc

Before mysql-test-run.pl runs the test case, it checks whether the value that it is using for the binlog_format system variable matches what the test requires, based on whether the test refers to one of the preceding include files. If binlog_format does not have an appropriate value, mysql-test-run.pl skips the test.

If a test supports all binary log formats, none of the have_binlog_format_*.inc include files should be used in the test file. A test that includes no such file is assumed to support all formats.