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