X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Flicense.c;h=965a159ff8fff53f15bea96d4675c052eedbd9f0;hb=2926cafb52b9d95646d9dafa877d53f2368d8b2c;hp=bc0ee45464a688dcc8a6738be4b62b0e7faf0ad8;hpb=f9423c171395571f9880286190d9cf63da147668;p=ccan-lca-2011.git diff --git a/tools/ccanlint/tests/license.c b/tools/ccanlint/tests/license.c index bc0ee45..965a159 100644 --- a/tools/ccanlint/tests/license.c +++ b/tools/ccanlint/tests/license.c @@ -11,6 +11,8 @@ #include #include +struct ccanlint has_license; + static struct doc_section *find_license(const struct manifest *m) { struct doc_section *d; @@ -147,10 +149,11 @@ static void check_has_license(struct manifest *m, score->score = score->total; } -struct ccanlint has_license = { +struct ccanlint license_exists = { .key = "license_exists", .name = "Module has License: entry in _info, and LICENSE symlink/file", .check = check_has_license, + .needs = "info_exists" }; -REGISTER_TEST(has_license, &has_info, NULL); +REGISTER_TEST(license_exists);