mirror of
https://github.com/MariaDB/server.git
synced 2025-01-25 00:04:33 +01:00
8d898d3798
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.
23 lines
441 B
C
23 lines
441 B
C
|
|
#include <stdlib.h>
|
|
#include <tap.h>
|
|
|
|
int has_feature() {
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
In some cases, an entire test file does not make sense because there
|
|
some feature is missing. In that case, the entire test case can be
|
|
skipped in the following manner.
|
|
*/
|
|
int main() {
|
|
if (!has_feature())
|
|
skip_all("Example of skipping an entire test");
|
|
plan(4);
|
|
ok(1, NULL);
|
|
ok(1, NULL);
|
|
ok(1, NULL);
|
|
ok(1, NULL);
|
|
return exit_status();
|
|
}
|