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"
17 #include "../compulsory_tests/build.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,
28 unsigned int *timeleft,
34 flags = talloc_asprintf(score, "%s %s", cflags,
35 REDUCE_FEATURES_FLAGS);
37 list_for_each(&m->deps, i, list) {
38 char *errstr = build_submodule(i, flags, COMPILE_NOFEAT);
41 score->error = talloc_asprintf(score,
43 " did not build:\n%s",
50 score->score = score->total;
53 struct ccanlint depends_build_without_features = {
54 .key = "depends_build_without_features",
55 .name = "Module's CCAN dependencies can be found or built (reduced features)",
56 .check = check_depends_built_without_features,
58 .needs = "depends_exist reduce_features"
61 REGISTER_TEST(depends_build_without_features);