]> 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 36adee60998a0c8477c415875620324e34603bd0..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;
@@ -128,6 +130,7 @@ struct ccanlint 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);