summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-08-30 14:01:25 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-08-30 14:01:25 +0930
commit728d98e8e44abcacbe9bfcd89762de2beda72698 (patch)
tree3d865f0cbe4b8ae44d3bd92824d75bd0885414e1
parent4c5ed661c625ac2638a18f9540ff5b9f96a6ba6f (diff)
ccanlint: show each test as we execute it with -vv
Tests can be slow to run, and this way we can monitor progress.
-rw-r--r--tools/ccanlint/tests/tests_pass.c2
-rw-r--r--tools/ccanlint/tests/tests_pass_without_features.c2
2 files changed, 4 insertions, 0 deletions
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++;