test: Add string for test automation compatibility REL.CORESDK.07.03.00.17 REL.CORESDK.07.03.00.18 REL.CORESDK.07.03.00.19 REL.CORESDK.07.03.00.20 REL.CORESDK.07.03.00.21 REL.CORESDK.07.03.00.22 REL.CORESDK.07.03.00.23 REL.CORESDK.07.03.00.24 REL.CORESDK.07.03.00.25 REL.CORESDK.07.03.00.26
authorStephen Molfetta <sjmolfetta@ti.com>
Wed, 24 Feb 2021 16:47:56 +0000 (10:47 -0600)
committerStephen Molfetta <sjmolfetta@ti.com>
Wed, 24 Feb 2021 16:47:56 +0000 (10:47 -0600)
Add string for automation scripts to detect test case pass.

Fixes PDK-8138

Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
test/SaUnitTest/src/testMain.c

index 1fcc971767eae42a73244d1d0b72812cbb51b5f4..aa336a57f539002155683506adff9dcf5c7c98cf 100644 (file)
@@ -683,6 +683,20 @@ void topLevelTest(int32_t a0, int32_t a1)
     }
 
        SALog ("\n\n ------- SA Unit Test Complete ---------\n");
+
+    if (failCount == 0)
+    {
+        if (notRunCount != 0)
+        {
+            SALog ("\nSome tests skipped.\n");
+        }
+        SALog ("\nAll tests have PASSED.\n");
+    }
+    else
+    {
+        SALog ("\nSome tests have FAILED.\n", failCount);
+    }
+
        System_flush();
     #ifdef USE_BIOS
 #if defined(NSS_LITE) || defined(NSS_LITE2)