]> git.ozlabs.org Git - ccan-lca-2011.git/blobdiff - tools/ccanlint/tests/examples_run.c
ccanlint: list dependencies by key
[ccan-lca-2011.git] / tools / ccanlint / tests / examples_run.c
index 103e1798f03b0c5eea721917322ccdd8cd18f14a..077ea2487b431a1f365702f94b9ff4f78473df5d 100644 (file)
@@ -272,10 +272,11 @@ static void run_examples(struct manifest *m, bool keep,
 }
 
 struct ccanlint examples_run = {
-       .key = "examples-run",
+       .key = "examples_run",
        .name = "Module examples with expected output give that output",
        .check = run_examples,
        .can_run = can_run,
+       .needs = "examples_compile"
 };
 
-REGISTER_TEST(examples_run, &examples_compile, NULL);
+REGISTER_TEST(examples_run);