X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Flicense.c;h=965a159ff8fff53f15bea96d4675c052eedbd9f0;hp=35a4d39379fdf92d641fe31a74a628a0ee18bc16;hb=2926cafb52b9d95646d9dafa877d53f2368d8b2c;hpb=0b26111530a6eb35420b7075b2cd58390cb2af14 diff --git a/tools/ccanlint/tests/license.c b/tools/ccanlint/tests/license.c index 35a4d393..965a159f 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 = { - .key = "has-license", - .name = "Module 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);