]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
test(tc): unify platform tests traces
authorSandrine Bailleux <sandrine.bailleux@arm.com>
Fri, 5 May 2023 13:59:00 +0000 (15:59 +0200)
committerSandrine Bailleux <sandrine.bailleux@arm.com>
Mon, 15 May 2023 11:02:30 +0000 (13:02 +0200)
Add some traces at the start and end of platform tests. These traces
are the same regardless of the set of platform tests we run (NV
counter tests / TF-M testsuite / future set of tests).

This makes it easier to integrate these tests in the CI because we can
now have a unified "expect" script for all platform tests, instead of
having one dedicated "expect" script for each possible set of tests.

Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
Change-Id: I5ec30a7a25d8a9a4a90e3338a9789acff7ad4843

plat/arm/board/tc/tc_bl31_setup.c

index 184791edced48327c7577e678c35e09f0fb0943a..33e460140818dce373a149e9cb11fcbf6a8a19bd 100644 (file)
@@ -52,12 +52,21 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
 #ifdef PLATFORM_TESTS
 static __dead2 void tc_run_platform_tests(void)
 {
+       int tests_failed;
+
+       printf("\nStarting platform tests...\n");
+
 #ifdef PLATFORM_TEST_NV_COUNTERS
-       nv_counter_test();
+       tests_failed = nv_counter_test();
 #elif PLATFORM_TEST_TFM_TESTSUITE
-       run_platform_tests();
+       tests_failed = run_platform_tests();
 #endif
+
+       printf("Platform tests %s.\n",
+              (tests_failed != 0) ? "failed" : "succeeded");
+
        /* Suspend booting, no matter the tests outcome. */
+       printf("Suspend booting...\n");
        plat_error_handler(-1);
 }
 #endif