1 #include <tools/ccanlint/ccanlint.h>
2 #include <tools/tools.h>
3 #include <ccan/talloc/talloc.h>
4 #include <ccan/str/str.h>
17 static const char *can_build(struct manifest *m)
20 return "Safe mode enabled";
24 static char *compile(struct manifest *m, struct ccan_file *cfile)
27 char *fullfile = talloc_asprintf(m, "%s/%s", m->dir, cfile->name);
29 cfile->compiled = compile_object(m, fullfile, ccan_dir, &err);
35 static void *do_compile_test_helpers(struct manifest *m)
40 list_for_each(&m->other_test_c_files, i, list) {
41 compile_tests.total_score++;
42 cmdout = compile(m, i);
44 return talloc_asprintf(m,
45 "Failed to compile helper C"
52 static const char *describe_compile_test_helpers(struct manifest *m,
58 struct ccanlint compile_test_helpers = {
59 .key = "compile-helpers",
60 .name = "Module test helper objects compile",
62 .check = do_compile_test_helpers,
63 .describe = describe_compile_test_helpers,
67 REGISTER_TEST(compile_test_helpers, &depends_built);