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 "reduce_features.h"
19 static const char *can_build(struct manifest *m)
22 return "Safe mode enabled";
26 static void check_depends_built_without_features(struct manifest *m,
27 unsigned int *timeleft,
33 flags = talloc_asprintf(score, "%s %s", cflags,
34 REDUCE_FEATURES_FLAGS);
36 list_for_each(&m->deps, i, list) {
37 char *errstr = build_submodule(i, flags, COMPILE_NOFEAT);
40 score->error = talloc_asprintf(score,
42 " did not build:\n%s",
49 score->score = score->total;
52 struct ccanlint depends_build_without_features = {
53 .key = "depends_build_without_features",
54 .name = "Module's CCAN dependencies can be found or built (reduced features)",
55 .check = check_depends_built_without_features,
57 .needs = "depends_build reduce_features"
60 REGISTER_TEST(depends_build_without_features);