Browse Source

ccanlint: show each test as we execute it with -vv

Tests can be slow to run, and this way we can monitor progress.
Rusty Russell 14 years ago
parent
commit
728d98e8e4

+ 2 - 0
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

+ 2 - 0
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++;