freertos ut updated
authorPrasad Konnur <prasadkonnur@ti.com>
Wed, 31 Mar 2021 19:55:26 +0000 (01:25 +0530)
committerPrasad Konnur <prasadkonnur@ti.com>
Wed, 31 Mar 2021 19:55:26 +0000 (01:25 +0530)
 - added test pass print to ccs console
 - updated OS Type to freertos in makefile

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
packages/ti/kernel/test/freertos/ut/makefile
packages/ti/kernel/test/freertos/ut/test_freertos.c

index 9bc400bb4a1bc73274d57ca2a3269b7c6666ef05..f7caab1c15d56b75c83f218a6e025f901194b83a 100644 (file)
@@ -9,26 +9,23 @@ endif
 
 
 APP_NAME = freertos_test_ut
-BUILD_OS_TYPE=baremetal
+BUILD_OS_TYPE=freertos
 CFLAGS_TEST_DEFINES =
 
 
 SRCDIR = .
-INCDIR =  ${FREERTOS_KERNEL_INSTALL_PATH}/FreeRTOS-Kernel/include
-INCDIR += $(PDK_FREERTOS_COMP_PATH)/freertos/portable/TI_CGT/$(ISA)
-INCDIR += $(PDK_FREERTOS_COMP_PATH)/freertos/config/$(SOC)/$(ISA)
-INCDIR += $(PDK_FREERTOS_COMP_PATH)/freertos/dpl/common
+INCDIR = .
 
 # List all the external components/interfaces, whose interface header files
 #  need to be included for this component
-INCLUDE_EXTERNAL_INTERFACES = pdk
-ifeq ($(BUILD_OS_TYPE), baremetal)
-COMP_LIST_COMMON = $(PDK_COMMON_BAREMETAL_COMP)
+INCLUDE_EXTERNAL_INTERFACES = pdk freertos
+ifeq ($(BUILD_OS_TYPE), freertos)
+COMP_LIST_COMMON = $(PDK_COMMON_FREERTOS_COMP)
 else
 # List all the components required by the application
 endif
 
-COMP_LIST_COMMON += freertos
+#COMP_LIST_COMMON += freertos
 
 ifeq ($(ISA),$(filter $(ISA), c66))
   EXTERNAL_LNKCMD_FILE_LOCAL = $(PDK_INSTALL_PATH)/ti/build/$(SOC)/linker_c66_freertos.cmd
index f3c9d62ee4499d5735d4a5ccb83c464459eaf774..98453f98eb30c582b08aedd5381c8848d1ffd60c 100644 (file)
@@ -457,6 +457,7 @@ void test_taskDelay(void)
 
 void ping_main(void *args)
 {
+    printf("Starting freertos ut\n");
     UNITY_BEGIN();
 
     RUN_TEST(test_taskSwitchWithSemaphore, 1, NULL);
@@ -471,6 +472,10 @@ void ping_main(void *args)
 
     UNITY_END();
 
+    if (Unity.TestFailures == 0)
+    {
+        printf("All Tests PASSED\n");
+    }
     /* One MUST not return out of a FreeRTOS task instead one MUST call vTaskDelete */
     vTaskDelete(NULL);
 }