test: Keep a track of the numbers of tests run
This is useful information and is not always the same as the 'count' arg
to ut_run_list() so add it as a separate stat.
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/test/test-main.c b/test/test-main.c
index e8aecd2..e36bc37 100644
--- a/test/test-main.c
+++ b/test/test-main.c
@@ -643,6 +643,7 @@
}
old_fail_count = uts->cur.fail_count;
+ uts->cur.test_count++;
if (one && upto == pos) {
ret = ut_run_test_live_flat(uts, one);
if (uts->cur.fail_count != old_fail_count) {
@@ -717,6 +718,7 @@
if (has_dm_tests)
dm_test_restore(uts->of_root);
+ printf("Tests run: %d, ", uts->cur.test_count);
if (uts->cur.skip_count)
printf("Skipped: %d, ", uts->cur.skip_count);
if (ret == -ENOENT)