1 #include <tools/ccanlint/ccanlint.h>
2 #include <tools/tools.h>
3 #include <ccan/str/str.h>
4 #include <ccan/foreach/foreach.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,
30 struct list_head *list;
34 flags = tal_fmt(score, "%s %s", cflags, REDUCE_FEATURES_FLAGS);
36 foreach_ptr(list, &m->deps, &m->test_deps) {
37 list_for_each(list, i, list) {
38 char *errstr = build_submodule(i, flags,
42 score->error = tal_fmt(score,
44 " did not build:\n%s",
53 score->score = score->total;
56 struct ccanlint depends_build_without_features = {
57 .key = "depends_build_without_features",
58 .name = "Module's CCAN dependencies can be found or built (reduced features)",
59 .check = check_depends_built_without_features,
61 .needs = "depends_build reduce_features"
64 REGISTER_TEST(depends_build_without_features);