mirror of
https://github.com/MariaDB/server.git
synced 2025-05-31 08:42:45 +03:00
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''
15 lines
232 B
C
15 lines
232 B
C
|
|
#include <tap.h>
|
|
#include <stdlib.h>
|
|
|
|
int main() {
|
|
plan(4);
|
|
ok(1, NULL);
|
|
ok(1, NULL);
|
|
SKIP_BLOCK_IF(1, 2, "Example of skipping a few test points in a test") {
|
|
ok(1, NULL);
|
|
ok(1, NULL);
|
|
}
|
|
return exit_status();
|
|
}
|