json_out: make json_out_finished finish buffer.
[ccan] / tools / ccanlint / tests / objects_build_without_features.c
1 #include <tools/ccanlint/ccanlint.h>
2 #include <ccan/tal/str/str.h>
3 #include "reduce_features.h"
4 #include "build.h"
5
6 static void check_objs_build_without_features(struct manifest *m,
7                                               unsigned int *timeleft UNNEEDED,
8                                               struct score *score)
9 {
10         const char *flags = tal_fmt(score, "%s %s",
11                                     REDUCE_FEATURES_FLAGS, cflags);
12         build_objects(m, score, flags, COMPILE_NOFEAT);
13 }
14
15 struct ccanlint objects_build_without_features = {
16         .key = "objects_build_without_features",
17         .name = "Module object files can be built (without features)",
18         .check = check_objs_build_without_features,
19         .needs = "reduce_features objects_build"
20 };
21 REGISTER_TEST(objects_build_without_features);
22