objects_build_without_features.c 682 B

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