X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fcompulsory_tests%2Fhas_tests.c;h=f6ef496843f51c95528c67973ef433b762cc05bf;hb=ab4a6fd9a3b417456ccd8f1fb976783683ccaa26;hp=46998d58cb0bb40148f050aa0c64c0bc6413e7f3;hpb=747a69435d9f83c0968d9689c4951bc0233ffc5e;p=ccan diff --git a/tools/ccanlint/compulsory_tests/has_tests.c b/tools/ccanlint/compulsory_tests/has_tests.c index 46998d58..f6ef4968 100644 --- a/tools/ccanlint/compulsory_tests/has_tests.c +++ b/tools/ccanlint/compulsory_tests/has_tests.c @@ -12,7 +12,9 @@ static char test_is_not_dir[] = "test is not a directory"; -static void *check_has_tests(struct manifest *m) +static void *check_has_tests(struct manifest *m, + bool keep, + unsigned int *timeleft) { struct stat st; char *test_dir = talloc_asprintf(m, "%s/test", m->dir); @@ -49,7 +51,8 @@ static const char *describe_has_tests(struct manifest *m, void *check_result) "warnings, and then run: it is expected to use libtap to report its\n" "results in a simple and portable format. It should #include the C\n" "files from the module directly (so it can probe the internals): the\n" - "module will not be linked in.\n\n" + "module will not be linked in. The test will be run in a temporary\n" + "directory, with the test directory symlinked under test/.\n\n" "api tests are just like a run test, except it is a guarantee of API\n" "stability: this test should pass on all future versions of the\n" @@ -124,7 +127,8 @@ static void handle_no_tests(struct manifest *m, void *check_result) } struct ccanlint has_tests = { - .name = "Has tests", + .key = "has-tests", + .name = "Module has tests", .check = check_has_tests, .describe = describe_has_tests, .handle = handle_no_tests,