mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
4f99f11e9c
Added 'test' target to build and run tests. Added documentation. Added README.txt files. Fixing problem with initialization of the Test::Harness::Straps replacement. Added code to filter out non- test directories. unittest/Makefile.am: Adding 'test' target to build and run tests. unittest/examples/skip.t.c: Changing text for skip reason. unittest/examples/skip_all.t.c: Changing text for skip reason. unittest/mytap/tap.c: Adding copyright. Adding documentation. Minor code changes. unittest/mytap/tap.h: Adding copyright. Adding documentation. unittest/unit.pl: Initializing replacement Test::Harness::Straps properly. Adding code to filter non-test directories from default directories to use. unittest/README.txt: New BitKeeper file ``unittest/README.txt'' |
||
---|---|---|
.. | ||
examples | ||
mysys | ||
mytap | ||
Makefile.am | ||
README.txt | ||
unit.pl |
Unit test structure ------------------- This is the current structure of the unit tests. All directories does not currently exist, and more directories will be added over time. + mysys Tests for mysys components + examples Example unit tests + sql Unit tests for server code + rpl Unit tests for replication code + log Unit tests for logging Executing unit tests -------------------- To make and execute all unit tests in the directory: make test Adding unit tests ----------------- Add a file with a name of the format "foo.t.c" to the appropriate directory and add the following to the Makefile.am in that directory (where ... denotes stuff already there): noinst_PROGRAMS = ... foo.t foo_t_c_SOURCES = foo.t.c