1 #include <tools/ccanlint/ccanlint.h>
2 #include <tools/tools.h>
3 #include <ccan/talloc/talloc.h>
4 #include <ccan/str/str.h>
16 #include "../compulsory_tests/build.h"
18 static const char *can_build(struct manifest *m)
21 return "Safe mode enabled";
25 static void check_depends_built_without_features(struct manifest *m,
27 unsigned int *timeleft,
33 flags = talloc_asprintf(score, "%s -I.", cflags);
35 list_for_each(&m->deps, i, list) {
36 char *errstr = build_submodule(i, flags, COMPILE_NOFEAT);
39 score->error = talloc_asprintf(score,
41 " did not build:\n%s",
48 score->score = score->total;
51 struct ccanlint depends_build_without_features = {
52 .key = "depends_build_without_features",
53 .name = "Module's CCAN dependencies can be found or built (reduced features)",
54 .check = check_depends_built_without_features,
56 .needs = "depends_exist"
59 REGISTER_TEST(depends_build_without_features);