X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fobjects_build_without_features.c;fp=tools%2Fccanlint%2Ftests%2Fobjects_build_without_features.c;h=f30bde4ed52f110b0cbd2144144dc1798628012a;hb=b401a01a30118cf3f89071f455b56136a2ad81d7;hp=0000000000000000000000000000000000000000;hpb=dfc94d4a4b80729b092089536caa33c0620a5ea9;p=ccan diff --git a/tools/ccanlint/tests/objects_build_without_features.c b/tools/ccanlint/tests/objects_build_without_features.c new file mode 100644 index 00000000..f30bde4e --- /dev/null +++ b/tools/ccanlint/tests/objects_build_without_features.c @@ -0,0 +1,21 @@ +#include +#include +#include "../compulsory_tests/build.h" + +static void check_objs_build_without_features(struct manifest *m, + bool keep, + unsigned int *timeleft, + struct score *score) +{ + const char *flags = talloc_asprintf(score, "-I. %s", cflags); + build_objects(m, keep, score, flags); +} + +struct ccanlint objects_build_without_features = { + .key = "objects_build_without_features", + .name = "Module object files can be built (without features)", + .check = check_objs_build_without_features, + .needs = "reduce_features objects_build" +}; +REGISTER_TEST(objects_build_without_features); +