ccanlint: show each test as we execute it with -vv
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 30 Aug 2011 04:31:25 +0000 (14:01 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 30 Aug 2011 04:31:25 +0000 (14:01 +0930)
Tests can be slow to run, and this way we can monitor progress.

tools/ccanlint/tests/tests_pass.c
tools/ccanlint/tests/tests_pass_without_features.c

index cbf01fd4e13e9b83df06378d97b276e2fdddc9f0..f90b5858f236bf41bd0ef6d0298e05d13e5f8707 100644 (file)
@@ -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
index 4ce337555b97f0274ca2e7697628faf684116545..cc650c24c88fdf1761cc8f089f75c1b213ec2365 100644 (file)
@@ -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++;