MySQL 8.4.0
Source Code Documentation
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.