X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Flicense.c;h=bc0ee45464a688dcc8a6738be4b62b0e7faf0ad8;hb=f9423c171395571f9880286190d9cf63da147668;hp=9140f98ee2fc67f7863440d83d1986c8b1156ca5;hpb=1925eb421dd88c8bcc5115eb2db8cfafdf0e07a8;p=ccan diff --git a/tools/ccanlint/tests/license.c b/tools/ccanlint/tests/license.c index 9140f98e..bc0ee454 100644 --- a/tools/ccanlint/tests/license.c +++ b/tools/ccanlint/tests/license.c @@ -50,6 +50,7 @@ static const char *expected_link(const struct manifest *m, || streq(d->lines[0], "LGPL (2 or any later version)")) return "../../licenses/LGPL-2.1"; if (streq(d->lines[0], "BSD") + || streq(d->lines[0], "BSD-MIT") || streq(d->lines[0], "MIT")) return "../../licenses/BSD-MIT"; return NULL; @@ -147,8 +148,8 @@ static void check_has_license(struct manifest *m, } struct ccanlint has_license = { - .key = "has-license", - .name = "Module has license", + .key = "license_exists", + .name = "Module has License: entry in _info, and LICENSE symlink/file", .check = check_has_license, };