X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Fcompulsory_tests%2Fcompile_tests.c;h=c6527ed51a2fbc5145e07b8288211ced9373f57a;hp=6444fc17f02b2c017b5a7bf9b2134be58235fe4b;hb=1d893107b3481639bf1fc6f96972457ac6e828f7;hpb=747a69435d9f83c0968d9689c4951bc0233ffc5e diff --git a/tools/ccanlint/compulsory_tests/compile_tests.c b/tools/ccanlint/compulsory_tests/compile_tests.c index 6444fc17..c6527ed5 100644 --- a/tools/ccanlint/compulsory_tests/compile_tests.c +++ b/tools/ccanlint/compulsory_tests/compile_tests.c @@ -40,8 +40,10 @@ static char *obj_list(const struct manifest *m, bool link_with_module) list = talloc_asprintf_append(list, " %s.o", m->dir); /* Other ccan modules. */ - list_for_each(&m->dep_objs, i, list) - list = talloc_asprintf_append(list, " %s", i->name); + list_for_each(&m->dep_dirs, i, list) { + if (i->compiled) + list = talloc_asprintf_append(list, " %s", i->compiled); + } return list; } @@ -80,7 +82,7 @@ struct compile_tests_result { const char *output; }; -static void *do_compile_tests(struct manifest *m) +static void *do_compile_tests(struct manifest *m, unsigned int *timeleft) { struct list_head *list = talloc(m, struct list_head); char *cmdout; @@ -182,7 +184,8 @@ static const char *describe_compile_tests(struct manifest *m, } struct ccanlint compile_tests = { - .name = "Compile tests succeed", + .key = "compile", + .name = "Module tests compile", .score = score_compile_tests, .check = do_compile_tests, .describe = describe_compile_tests,