1 #include <tools/ccanlint/ccanlint.h>
2 #include <tools/tools.h>
3 #include <ccan/talloc/talloc.h>
4 #include <ccan/str/str.h>
5 #include <ccan/foreach/foreach.h>
17 #include "reduce_features.h"
20 static const char *can_build(struct manifest *m)
23 return "Safe mode enabled";
27 static void check_depends_built_without_features(struct manifest *m,
28 unsigned int *timeleft,
31 struct list_head *list;
35 flags = talloc_asprintf(score, "%s %s", cflags,
36 REDUCE_FEATURES_FLAGS);
38 foreach_ptr(list, &m->deps, &m->test_deps) {
39 list_for_each(list, i, list) {
40 char *errstr = build_submodule(i, flags,
44 score->error = talloc_asprintf(score,
56 score->score = score->total;
59 struct ccanlint depends_build_without_features = {
60 .key = "depends_build_without_features",
61 .name = "Module's CCAN dependencies can be found or built (reduced features)",
62 .check = check_depends_built_without_features,
64 .needs = "depends_build reduce_features"
67 REGISTER_TEST(depends_build_without_features);