+
+static const char *features_reduced(struct manifest *m)
+{
+ if (features_were_reduced)
+ return NULL;
+ return "No features to turn off";
+}
+
+static void do_compile_tests_without_features(struct manifest *m,
+ bool keep,
+ unsigned int *timeleft,
+ struct score *score)
+{
+ return compile_tests(m, keep, score, "-I. ");
+}
+
+struct ccanlint tests_compile_without_features = {
+ .key = "tests_compile_without_features",
+ .name = "Module tests compile (without features)",
+ .check = do_compile_tests_without_features,
+ .can_run = features_reduced,
+ .needs = "reduce_features"
+};
+REGISTER_TEST(tests_compile_without_features);