]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/has_tests.c
ccanlint: list dependencies by key
[ccan] / tools / ccanlint / tests / has_tests.c
index 0a510a034629b62d10bffa5ab06b04cfb043b0c3..0e90d16ff737a717765727f27c7a8ddb68c6170e 100644 (file)
@@ -10,6 +10,8 @@
 #include <err.h>
 #include <ccan/talloc/talloc.h>
 
+extern struct ccanlint has_tests;
+
 static void handle_no_tests(struct manifest *m, struct score *score)
 {
        FILE *run;
@@ -125,9 +127,10 @@ static void check_has_tests(struct manifest *m,
 }
 
 struct ccanlint has_tests = {
-       .key = "has-tests",
-       .name = "Module has tests",
+       .key = "tests_exist",
+       .name = "Module has test directory with tests in it",
        .check = check_has_tests,
+       .needs = ""
 };
 
-REGISTER_TEST(has_tests, NULL);
+REGISTER_TEST(has_tests);