From 561320beffd10d133a316aacaf3170387324bdae Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 20 Jan 2025 14:26:00 -0700 Subject: 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 --- include/test/test.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/test') diff --git a/include/test/test.h b/include/test/test.h index bc8f0bbe501..f7087ab4eea 100644 --- a/include/test/test.h +++ b/include/test/test.h @@ -14,10 +14,13 @@ * * @fail_count: Number of tests that failed * @skip_count: Number of tests that were skipped + * @test_count: Number of tests run. If a test is run muiltiple times, only one + * is counted */ struct ut_stats { int fail_count; int skip_count; + int test_count; }; /* -- cgit v1.3.1