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