2009-09-16 14:03:18 +02:00
'\" t
2009-05-25 11:59:47 +02:00
. \" Title: \fBmysql_client_test\fR
2009-09-16 14:03:18 +02:00
. \" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
. \" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
2010-04-28 15:06:11 +02:00
. \" Date: 03/31/2010
2009-05-25 11:59:47 +02:00
. \" Manual: MySQL Database System
. \" Source: MySQL
2009-09-16 14:03:18 +02:00
. \" Language: English
2009-05-25 11:59:47 +02:00
. \"
2010-04-28 15:06:11 +02:00
.TH "\FBMYSQL_CLIENT_TEST" "1" "03/31/2010" "MySQL" "MySQL Database System"
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2009-05-25 11:59:47 +02:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
. \" mysql_client_test
. \" mysql_client_test_embedded
2009-05-25 11:59:47 +02:00
.SH "NAME"
mysql_client_test \- test client API
.br
mysql_client_test_embedded \- test client API for embedded server
.SH "SYNOPSIS"
2009-09-16 14:03:18 +02:00
.HP \w '\fBmysql_client_test\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fItest_name\fR\fR\fB]\ \& .\&.\&.\fR\ 'u
\fB mysql_client_test [\fR \fB \fI options\fR \fR \fB ] [\fR \fB \fI test_name\fR \fR \fB ] \& .\& .\& .\fR
.HP \w '\fBmysql_client_test_embedded\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fItest_name\fR\fR\fB]\ \& .\&.\&.\fR\ 'u
\fB mysql_client_test_embedded [\fR \fB \fI options\fR \fR \fB ] [\fR \fB \fI test_name\fR \fR \fB ] \& .\& .\& .\fR
2009-05-25 11:59:47 +02:00
.SH "DESCRIPTION"
.PP
The
\fB mysql_client_test\fR
program is used for testing aspects of the MySQL client API that cannot be tested using
\fB mysqltest\fR
2009-09-16 14:03:18 +02:00
and its test language\& .
2009-05-25 11:59:47 +02:00
\fB mysql_client_test_embedded\fR
2009-09-16 14:03:18 +02:00
is similar but used for testing the embedded server\& . Both programs are run as part of the test suite\& .
2009-05-25 11:59:47 +02:00
.PP
The source code for the programs can be found in in
2010-04-28 15:06:11 +02:00
tests/mysql_client_test\& .c
2009-09-16 14:03:18 +02:00
in a source distribution\& . The program serves as a good source of examples illustrating how to use various features of the client API\& .
2009-05-25 11:59:47 +02:00
.PP
\fB mysql_client_test\fR
2010-04-28 15:06:11 +02:00
is used in a test by the same name in the main tests suite of
\fB mysql\- test\- run\& .pl\fR
but may also be run directly\& . Unlike the other programs listed here, it does not read an external description of what tests to run\& . Instead, all tests are coded into the program, which is written to cover all aspects of the C language API\& .
.PP
\fB mysql_client_test\fR
2009-05-25 11:59:47 +02:00
supports the following options:
2009-09-16 14:03:18 +02:00
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: help option
. \" help option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- help\fR ,
\fB \- ?\fR
.sp
2009-09-16 14:03:18 +02:00
Display a help message and exit\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
\fB \- \- basedir=\fR \fB \fI dir_name\fR \fR ,
2009-09-16 14:03:18 +02:00
. \" mysql_client_test: basedir option
. \" basedir option: mysql_client_test
2010-04-28 15:06:11 +02:00
\fB \- b \fR \fB \fI dir_name\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
The base directory for the tests\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
\fB \- \- count=\fR \fB \fI count\fR \fR ,
2009-09-16 14:03:18 +02:00
. \" mysql_client_test: count option
. \" count option: mysql_client_test
2010-04-28 15:06:11 +02:00
\fB \- t \fR \fB \fI count\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
The number of times to execute the tests\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: database option
. \" database option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- database=\fR \fB \fI db_name\fR \fR ,
\fB \- D \fR \fB \fI db_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The database to use\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: debug option
. \" debug option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- debug[=\fR \fB \fI debug_options\fR \fR \fB ]\fR ,
\fB \- #[\fR \fB \fI debug_options\fR \fR \fB ]\fR
.sp
2009-09-16 14:03:18 +02:00
Write a debugging log if MySQL is built with debugging support\& . The default
2009-05-25 11:59:47 +02:00
\fI debug_options\fR
value is
2009-09-16 14:03:18 +02:00
\' d:t:o,/tmp/mysql_client_test\& .trace\' \& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
\fB \- \- getopt\- ll\- test=\fR \fB \fI option\fR \fR ,
2009-09-16 14:03:18 +02:00
. \" mysql_client_test: getopt-ll-test option
. \" getopt-ll-test option: mysql_client_test
2010-04-28 15:06:11 +02:00
\fB \- g \fR \fB \fI option\fR \fR
2009-05-25 11:59:47 +02:00
.sp
Option to use for testing bugs in the
getopt
2009-09-16 14:03:18 +02:00
library\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: host option
. \" host option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- host=\fR \fB \fI host_name\fR \fR ,
\fB \- h \fR \fB \fI host_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
Connect to the MySQL server on the given host\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: password option
. \" password option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- password[=\fR \fB \fI password\fR \fR \fB ]\fR ,
\fB \- p[\fR \fB \fI password\fR \fR \fB ]\fR
.sp
2009-09-16 14:03:18 +02:00
The password to use when connecting to the server\& . If you use the short option form (\fB \- p\fR ), you
2009-05-25 11:59:47 +02:00
\fI cannot\fR
2009-09-16 14:03:18 +02:00
have a space between the option and the password\& . If you omit the
2009-05-25 11:59:47 +02:00
\fI password\fR
value following the
2009-09-16 14:03:18 +02:00
. \" mysql_client_test: password option
. \" password option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- password\fR
or
\fB \- p\fR
2009-09-16 14:03:18 +02:00
option on the command line, you are prompted for one\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: port option
. \" port option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- port=\fR \fB \fI port_num\fR \fR ,
\fB \- P \fR \fB \fI port_num\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The TCP/IP port number to use for the connection\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
\fB \- \- server\- arg=\fR \fB \fI arg\fR \fR ,
2009-09-16 14:03:18 +02:00
. \" mysql_client_test: server-arg option
. \" server-arg option: mysql_client_test
2010-04-28 15:06:11 +02:00
\fB \- A \fR \fB \fI arg\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
Argument to send to the embedded server\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
\fB \- \- show\- tests\fR ,
\fB \- T\fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
Show all test names\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: silent option
. \" silent option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- silent\fR ,
\fB \- s\fR
.sp
2009-09-16 14:03:18 +02:00
Be more silent\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: socket option
. \" socket option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- socket=\fR \fB \fI path\fR \fR ,
\fB \- S \fR \fB \fI path\fR \fR
.sp
The socket file to use when connecting to
localhost
2009-09-16 14:03:18 +02:00
(which is the default host)\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
\fB \- \- testcase\fR ,
\fB \- c\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
The option is used when called from
\fB mysql\- test\- run\& .pl\fR , so that
\fB mysql_client_test\fR
may optionally behave in a different way than if called manually, for example by skipping some tests\& . Currently, there is no difference in behavior but the option is included in order to make this possible\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: user option
. \" user option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- user=\fR \fB \fI user_name\fR \fR ,
\fB \- u \fR \fB \fI user_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The MySQL user name to use when connecting to the server\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-05-25 11:59:47 +02:00
\fB \- v \fR \fB \fI dir_name\fR \fR ,
2009-09-16 14:03:18 +02:00
. \" mysql_client_test: vardir option
. \" vardir option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- vardir=\fR \fB \fI dir_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The data directory for tests\& . The default is
mysql\- test/var\& .
.RE
2009-05-25 11:59:47 +02:00
.SH "COPYRIGHT"
2009-09-16 14:03:18 +02:00
.br
2009-05-25 11:59:47 +02:00
.PP
2011-11-21 18:13:14 +01:00
Copyright \(co 2007, 2010, Oracle and/or its affiliates
2009-05-25 11:59:47 +02:00
.PP
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
.PP
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
.PP
2009-09-16 14:03:18 +02:00
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
.sp
2009-05-25 11:59:47 +02:00
.SH "SEE ALSO"
For more information, please refer to the MySQL Reference Manual,
which may already be installed locally and which is also available
online at http://dev.mysql.com/doc/.
.SH AUTHOR
2009-09-16 14:03:18 +02:00
Sun Microsystems, Inc. (http://www.mysql.com/).