From 728d98e8e44abcacbe9bfcd89762de2beda72698 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 30 Aug 2011 14:01:25 +0930 Subject: [PATCH] ccanlint: show each test as we execute it with -vv Tests can be slow to run, and this way we can monitor progress. --- tools/ccanlint/tests/tests_pass.c | 2 ++ tools/ccanlint/tests/tests_pass_without_features.c | 2 ++ 2 files changed, 4 insertions(+) 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++; -- 2.39.2