]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/has_tests.c
ccanlint: Add -k option to keep results.
[ccan] / tools / ccanlint / compulsory_tests / has_tests.c
index 930b412970353a05042623f65c91e263e37b003c..04dd4495bb33e2207f8402ecb4ff3bf1ecff0fbe 100644 (file)
@@ -12,7 +12,9 @@
 
 static char test_is_not_dir[] = "test is not a directory";
 
 
 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);
 {
        struct stat st;
        char *test_dir = talloc_asprintf(m, "%s/test", m->dir);
@@ -125,7 +127,7 @@ static void handle_no_tests(struct manifest *m, void *check_result)
 
 struct ccanlint has_tests = {
        .key = "has-tests",
 
 struct ccanlint has_tests = {
        .key = "has-tests",
-       .name = "Has tests",
+       .name = "Module has tests",
        .check = check_has_tests,
        .describe = describe_has_tests,
        .handle = handle_no_tests,
        .check = check_has_tests,
        .describe = describe_has_tests,
        .handle = handle_no_tests,