#include <ccan/talloc/talloc.h>
#include <ccan/str/str.h>
-REGISTER_TEST(license_exists);
-
static struct doc_section *find_license(const struct manifest *m)
{
struct doc_section *d;
}
}
+extern struct ccanlint license_exists;
+
static void check_has_license(struct manifest *m,
bool keep,
unsigned int *timeleft, struct score *score)
score->error = talloc_strdup(score, "No License: tag in _info");
return;
}
+ /* If they have a license tag at all, we pass. */
+ score->pass = true;
+
expected = expected_link(m, d);
len = readlink(license, buf, sizeof(buf));
.check = check_has_license,
.needs = "info_exists"
};
+REGISTER_TEST(license_exists);