The Mysql Test Suite; Adding New Functions To Mysql - Oracle 5.0 Reference Manual

Table of Contents

Advertisement

• If
InnoDB
by the
innodb_file_io_threads
Options and System
• If
mysqld
created. This is only used on some systems where there are problems with
want to use the
• If the server is started with the
flush all tables every
• Each table for which
Section 13.2.5.2,
mysqladmin processlist

21.1.2. The MySQL Test Suite

The test system that is included in Unix source and binary distributions makes it possible for users and
developers to perform regression tests on the MySQL code. These tests can be run on Unix.
You can also write your own test cases. For information about the MySQL Test Framework, including
system requirements, see the manual available at http://dev.mysql.com/doc/mysqltest/2.0/en/.
The current set of test cases doesn't test everything in MySQL, but it should catch most obvious
bugs in the SQL processing code, operating system or library issues, and is quite thorough in testing
replication. Our goal is to have the tests cover 100% of the code. We welcome contributions to our test
suite. You may especially want to contribute tests that examine the functionality critical to your system
because this ensures that all future MySQL releases work well with your applications.
The test system consists of a test language interpreter (mysqltest), a Perl script to run all tests
(mysql-test-run.pl), the actual test cases written in a special test language, and their expected
results. To run the test suite on your system after a build, type
directory, or change location to the
have installed a binary distribution, change location to the
root directory (for example, /usr/local/mysql/mysql-test), and run ./mysql-test-run.pl.
All tests should succeed. If any do not, feel free to try to find out why and report the problem if it
indicates a bug in MySQL. See
If one test fails, you should run
other tests fail.
If you have a copy of
not have to stop it, as long as it is not using ports
should set the
will use a different set of ports for master, slave, NDB, and Instance Manager). For example:
shell> export MTR_BUILD_THREAD=31
shell> ./mysql-test-run.pl [options] [test_name]
In the
mysql-test
test_name.
If you have a question about the test suite, or have a test case to contribute, send an email message to
the MySQL

21.2. Adding New Functions to MySQL

There are three ways to add new functions to MySQL:
• You can add functions through the user-defined function (UDF) interface. User-defined functions
are compiled as object files and then added to and removed from the server dynamically using the
is used, there will be 4 additional threads by default. Those are file I/O threads, controlled
Variables".
is compiled with -DUSE_ALARM_THREAD, a dedicated thread that handles alarms is
code in your application without a dedicated signal handling thread.
thr_alarm()
--flush_time=val
seconds.
val
INSERT DELAYED
"INSERT DELAYED
only shows the connection,
Section 1.7, "How to Report Bugs or
mysql-test-run.pl
running on the machine where you want to run the test suite, you do
mysqld
MTR_BUILD_THREAD
directory, you can run an individual test case with
mailing list. See
internals
The MySQL Test Suite
[1241]
parameter. See
[451]
statements are issued gets its own thread. See
Syntax".
directory and type ./mysql-test-run.pl. If you
mysql-test
with the
or 9307. If either of those ports is taken, you
9306
environment variable to an appropriate value, and the test suite
Section 1.6.1, "MySQL Mailing
2808
Section 14.2.2,
"InnoDB
sigwait()
option, a dedicated thread is created to
DELAYED, and replication threads.
INSERT
from the source root
make test
directory under the installation
mysql-test
Problems".
option to check whether any
--force
./mysql-test-run.pl
Lists".
Startup
or if you

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Mysql 5.0

Table of Contents