mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
WL#3206 (Adding unit tests):
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''
This commit is contained in:
@ -6,7 +6,7 @@ int main() {
|
||||
plan(4);
|
||||
ok(1, NULL);
|
||||
ok(1, NULL);
|
||||
SKIP_BLOCK_IF(1, 2, "No point") {
|
||||
SKIP_BLOCK_IF(1, 2, "Example of skipping a few test points in a test") {
|
||||
ok(1, NULL);
|
||||
ok(1, NULL);
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ int has_feature() {
|
||||
*/
|
||||
int main() {
|
||||
if (!has_feature())
|
||||
skip_all("Missing feature");
|
||||
skip_all("Example of skipping an entire test");
|
||||
plan(4);
|
||||
ok(1, NULL);
|
||||
ok(1, NULL);
|
||||
|
Reference in New Issue
Block a user