]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/compile_test_helpers.c
ccanlint: put generated _info in correct directory.
[ccan] / tools / ccanlint / compulsory_tests / compile_test_helpers.c
index de8d4632c9fbea9aa9ff992a2b0a0eb78a879d91..d229183a57b84558f8957a20e0a04621b4b8d7e4 100644 (file)
@@ -24,14 +24,15 @@ static const char *can_build(struct manifest *m)
 static char *compile(struct manifest *m, struct ccan_file *cfile)
 {
        char *err;
+       char *fullfile = talloc_asprintf(m, "%s/%s", m->dir, cfile->name);
 
-       cfile->compiled = compile_object(m, cfile->name, &err);
+       cfile->compiled = compile_object(m, fullfile, ccan_dir, &err);
        if (cfile->compiled)
                return NULL;
        return err;
 }
 
-static void *do_compile_test_helpers(struct manifest *m)
+static void *do_compile_test_helpers(struct manifest *m, unsigned int *timeleft)
 {
        char *cmdout = NULL;
        struct ccan_file *i;
@@ -55,7 +56,8 @@ static const char *describe_compile_test_helpers(struct manifest *m,
 }
 
 struct ccanlint compile_test_helpers = {
-       .name = "Compiling test helper files",
+       .key = "compile-helpers",
+       .name = "Module test helper objects compile",
        .total_score = 1,
        .check = do_compile_test_helpers,
        .describe = describe_compile_test_helpers,