summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3273353)
raw | patch | inline | side by side (parent: 3273353)
author | Prasad Konnur <prasadkonnur@ti.com> | |
Wed, 31 Mar 2021 19:55:26 +0000 (01:25 +0530) | ||
committer | Prasad 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>
- updated OS Type to freertos in makefile
Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
packages/ti/kernel/test/freertos/ut/makefile | patch | blob | history | |
packages/ti/kernel/test/freertos/ut/test_freertos.c | patch | blob | history |
diff --git a/packages/ti/kernel/test/freertos/ut/makefile b/packages/ti/kernel/test/freertos/ut/makefile
index 9bc400bb4a1bc73274d57ca2a3269b7c6666ef05..f7caab1c15d56b75c83f218a6e025f901194b83a 100644 (file)
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
diff --git a/packages/ti/kernel/test/freertos/ut/test_freertos.c b/packages/ti/kernel/test/freertos/ut/test_freertos.c
index f3c9d62ee4499d5735d4a5ccb83c464459eaf774..98453f98eb30c582b08aedd5381c8848d1ffd60c 100644 (file)
void ping_main(void *args)
{
+ printf("Starting freertos ut\n");
UNITY_BEGIN();
RUN_TEST(test_taskSwitchWithSemaphore, 1, NULL);
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);
}