MARIADB-CLIENT-TEST(1)
π MARIADB-CLIENT-TEST π
okay bestie, welcome to the MariaDB Database System corner of the manual, where the page is literally called MARIADB-CLIENT-TEST(1) and it's about a little test client that goes feral on the client API. buckle up π
β¨ NAME β¨
mariadb-client-test β test client API (and plot twist: mariadb-client-test is now a symlink to mariadb-client-test)
mariadb-client-test-embedded β test client API for embedded server (and also plot twist: mariadb-client-test-embedded is now a symlink to mariadb-client-test-embedded)
no fr fr, that's what it says, we don't make the symlink rules, we just report them π
β¨ SYNOPSIS β¨
mariadb-client-test [options] [test_name] ...
mariadb-client-test-embedded [options] [test_name] ...
β¨ DESCRIPTION β¨
so. the mariadb-client-test program exists to test aspects of the MariaDB client API that cannot be tested using mariadb-test and its test language. like, mariadb-test tried, but it can't reach these parts. it's giving "you had one job and it wasn't this one." π
mariadb-client-test-embedded is the same energy but for testing the embedded server. both of these programs are run as part of the test suite, they're not just out here vibing for fun.
the source code lives in tests/mariadb-client-test.c in a source distribution β and honestly? it's a great source of examples showing how to use various features of the client API. like, read it, it's giving tutorial but make it real code π¦
mariadb-client-test gets used by a test with the same name in the main tests suite of mariadb-test-run.pl, but you can also just run it directly if that's your moment. and here's the thing that makes it different from the other programs listed here: it does not read an external description of what tests to run. nope. all the tests are coded into the program, which is written to cover all aspects of the C language API. everything, everywhere, all at once, but on purpose β¨
mariadb-client-test supports the following options:
--help,-?β display a help message and exit. iconic behaviour, honestly.--basedir=dir_name,-b dir_nameβ the base directory for the tests.--count=count,-t countβ the number of times to execute the tests. yes you can run them again. and again. and again.--database=db_name,-D db_nameβ the database to use.--debug[=debug_options],-#[debug_options]β write a debugging log if MariaDB is built with debugging support. the defaultdebug_optionsvalue is'd:t:o,/tmp/mariadb-client-test.trace'. that path? memorize it, bestie π--getopt-ll-test=option,-g optionβ option to use for testing bugs in thegetoptlibrary. we're hunting bugs, lowkey detective work π--host=host_name,-h host_nameβ connect to the MariaDB server on the given host.--password[=password],-p[password]β the password to use when connecting to the server. β οΈ important: if you use the short option form (-p), you cannot have a space between the option and the password. and if you omit the password value following the--passwordor-poption on the command line, you are prompted for one. so it'll ask. it always asks. π--port=port_num,-P port_numβ the TCP/IP port number to use for the connection.--server-arg=arg,-A argβ argument to send to the embedded server.--show-tests,-Tβ show all test names. the whole roster, the full lineup π--silent,-sβ be more silent. shhh. quieter. the vibe check is subtle π--socket=path,-S pathβ the socket file to use when connecting to localhost (which is the default host). yes, localhost is the default, we said it, it's canon.--testcase,-cβ this one's used when called frommariadb-test-run.pl, so thatmariadb-client-testmay optionally behave in a different way than if called manually β for example by skipping some tests. and currently? there is no difference in behavior, but the option is included in order to make this possible. it's a "for future us" moment, main character energy for an option that does nothing yet π--user=user_name,-u user_nameβ the MariaDB user name to use when connecting to the server.-v dir_name,--vardir=dir_nameβ the data directory for tests. the default ismariadb-test/var. write that down βοΈ
β¨ COPYRIGHT β¨
Copyright Β© 2007, 2010, Oracle and/or its affiliates, 2010-2025 MariaDB Foundation
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.
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.
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-1335 USA or see http://www.gnu.org/licenses/.
okay so the license stuff is legally required and also lowkey slay of them to open source it, but bestie please actually read the no-warranty part, it's there for a reason π
β¨ SEE ALSO β¨
For more information, please refer to the MariaDB Documentation, available online at https://mariadb.com/docs/
β¨ AUTHOR β¨
MariaDB Foundation (http://www.mariadb.org/).
and that's the whole page, periodt π
this was MariaDB 11.8, dated 5 March 2025, and it's the MARIADB-CLIENT-TEST(1) manual page from the MariaDB Database System. go run your tests, bestie, you got this π«Άβ¨
π¦ where this page comes from
- alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
- arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
- arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
- centos-stream 10: mariadb11.8-test 3:11.8.8-1.el10 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- centos-stream 9: mariadb-test 3:11.8.8-1.module_el9+1370+ec5ecc2e Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- debian trixie: mariadb-test 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- fedora 43: mariadb11.8-test 3:11.8.8-1.fc43 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- fedora 43: mariadb12.3-test 3:12.3.2-2.fc43 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- fedora 44: mariadb-test 3:11.8.6-2.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- fedora 44: mariadb-test 3:11.8.8-3.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- fedora 44: mariadb12.3-test 3:12.3.2-2.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- nixpkgs unstable: mariadb-server 11.8.8
- opensuse-leap 16.0: mariadb-test 11.8.8-160000.1.1 Β· SUSE-GPL-2.0-with-FLOSS-exception
- opensuse-leap 16.0: mariadb-test 11.8.8-160000.1.1 Β· SUSE-GPL-2.0-with-FLOSS-exception
- opensuse-leap 16.0: mariadb-test 11.8.8-160000.1.1 Β· SUSE-GPL-2.0-with-FLOSS-exception
- opensuse-leap 16.0: mariadb-test 11.8.8-160000.1.1 Β· SUSE-GPL-2.0-with-FLOSS-exception
- ubuntu resolute: mariadb-test 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: mariadb-test 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: mariadb-test 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms