From: Rusty Russell Date: Tue, 30 Aug 2011 04:31:25 +0000 (+0930) Subject: ccanlint: show each test as we execute it with -vv X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=728d98e8e44abcacbe9bfcd89762de2beda72698;hp=4c5ed661c625ac2638a18f9540ff5b9f96a6ba6f ccanlint: show each test as we execute it with -vv Tests can be slow to run, and this way we can monitor progress. --- diff --git a/tools/ccanlint/tests/tests_pass.c b/tools/ccanlint/tests/tests_pass.c index cbf01fd4..f90b5858 100644 --- a/tools/ccanlint/tests/tests_pass.c +++ b/tools/ccanlint/tests/tests_pass.c @@ -94,6 +94,8 @@ static void do_run_tests(struct manifest *m, foreach_ptr(list, &m->run_tests, &m->api_tests) { list_for_each(list, i, list) { score->total++; + if (verbose >= 2) + printf(" %s\n", i->name); if (run_test(score, m, timeleft, &cmdout, i)) score->score++; else diff --git a/tools/ccanlint/tests/tests_pass_without_features.c b/tools/ccanlint/tests/tests_pass_without_features.c index 4ce33755..cc650c24 100644 --- a/tools/ccanlint/tests/tests_pass_without_features.c +++ b/tools/ccanlint/tests/tests_pass_without_features.c @@ -29,6 +29,8 @@ static void do_run_tests_no_features(struct manifest *m, foreach_ptr(list, &m->run_tests, &m->api_tests) { list_for_each(list, i, list) { score->total++; + if (verbose >= 2) + printf(" %s\n", i->name); if (run_command(m, timeleft, &cmdout, "%s", i->compiled[COMPILE_NOFEAT])) score->score++;