Răsfoiți Sursa

freertos: move test files to appropriate subfolders

Zim Kalinowski 3 ani în urmă
părinte
comite
dad8b50876
32 a modificat fișierele cu 132 adăugiri și 3 ștergeri
  1. 8 1
      components/freertos/test/CMakeLists.txt
  2. 1 0
      components/freertos/test/integration/event_groups/test_freertos_eventgroups.c
  3. 6 0
      components/freertos/test/integration/queue/test_freertos_debug_functions.c
  4. 6 0
      components/freertos/test/integration/queue/test_queuesets.c
  5. 6 0
      components/freertos/test/integration/stream_buffer/test_stream_buffers.c
  6. 1 0
      components/freertos/test/integration/tasks/test_freertos_get_state.c
  7. 1 1
      components/freertos/test/integration/tasks/test_freertos_scheduling_round_robin.c
  8. 6 0
      components/freertos/test/integration/tasks/test_freertos_task_delay_until.c
  9. 6 0
      components/freertos/test/integration/tasks/test_freertos_task_delete.c
  10. 1 0
      components/freertos/test/integration/tasks/test_freertos_task_notify.c
  11. 2 1
      components/freertos/test/integration/tasks/test_freertos_task_utilities.c
  12. 1 0
      components/freertos/test/integration/tasks/test_suspend_scheduler.c
  13. 6 0
      components/freertos/test/integration/tasks/test_task_priorities.c
  14. 1 0
      components/freertos/test/integration/tasks/test_task_suspend_resume.c
  15. 0 0
      components/freertos/test/integration/tasks/test_tasks_snapshot.c
  16. 6 0
      components/freertos/test/integration/timers/test_timers.c
  17. 6 0
      components/freertos/test/miscellaneous/test_freertos_backported_functions.c
  18. 6 0
      components/freertos/test/miscellaneous/test_freertos_mutex.c
  19. 6 0
      components/freertos/test/miscellaneous/test_freertos_trace_utilities.c
  20. 6 0
      components/freertos/test/miscellaneous/test_panic.c
  21. 1 0
      components/freertos/test/miscellaneous/test_preemption.c
  22. 6 0
      components/freertos/test/performance/test_freertos_scheduling_time.c
  23. 6 0
      components/freertos/test/performance/test_isr_latency.c
  24. 6 0
      components/freertos/test/port/test_context_save_clobber.S
  25. 6 0
      components/freertos/test/port/test_context_save_clobber.c
  26. 6 0
      components/freertos/test/port/test_float_in_isr.c
  27. 0 0
      components/freertos/test/port/test_freertos_hooks.c
  28. 6 0
      components/freertos/test/port/test_freertos_isinisrcontext.c
  29. 6 0
      components/freertos/test/port/test_newlib_reent.c
  30. 1 0
      components/freertos/test/port/test_spinlocks.c
  31. 6 0
      components/freertos/test/port/test_thread_local.c
  32. 0 0
      components/freertos/test/port/test_xtensa_loadstore_handler.c

+ 8 - 1
components/freertos/test/CMakeLists.txt

@@ -1,3 +1,10 @@
-idf_component_register(SRC_DIRS .
+idf_component_register(SRC_DIRS integration/event_groups
+                                integration/queue
+                                integration/stream_buffer
+                                integration/tasks
+                                integration/timers
+                                miscellaneous
+                                performance
+                                port
                        PRIV_INCLUDE_DIRS .
                        PRIV_REQUIRES cmock test_utils esp_system driver)

+ 1 - 0
components/freertos/test/test_freertos_eventgroups.c → components/freertos/test/integration/event_groups/test_freertos_eventgroups.c

@@ -3,6 +3,7 @@
  *
  * SPDX-License-Identifier: Apache-2.0
  */
+
 #include <stdio.h>
 
 #include "freertos/FreeRTOS.h"

+ 6 - 0
components/freertos/test/test_freertos_debug_functions.c → components/freertos/test/integration/queue/test_freertos_debug_functions.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 /*
  * Test FreeRTOS debug functions and utilities.
  * - Queue registry functions vQueueAddToRegistry(), vQueueUnregisterQueue(),

+ 6 - 0
components/freertos/test/test_queuesets.c → components/freertos/test/integration/queue/test_queuesets.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include "freertos/FreeRTOS.h"

+ 6 - 0
components/freertos/test/test_stream_buffers.c → components/freertos/test/integration/stream_buffer/test_stream_buffers.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

+ 1 - 0
components/freertos/test/test_freertos_get_state.c → components/freertos/test/integration/tasks/test_freertos_get_state.c

@@ -3,6 +3,7 @@
  *
  * SPDX-License-Identifier: Apache-2.0
  */
+
 #include "sdkconfig.h"
 #include <stdio.h>
 #include <stdlib.h>

+ 1 - 1
components/freertos/test/test_freertos_scheduling_round_robin.c → components/freertos/test/integration/tasks/test_freertos_scheduling_round_robin.c

@@ -1,5 +1,5 @@
 /*
- * SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
+ * SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
  *
  * SPDX-License-Identifier: Apache-2.0
  */

+ 6 - 0
components/freertos/test/test_freertos_task_delay_until.c → components/freertos/test/integration/tasks/test_freertos_task_delay_until.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 /*
  Test for FreeRTOS vTaskDelayUntil() function by comparing the delay period of
  the function to comparing it to ref clock.

+ 6 - 0
components/freertos/test/test_freertos_task_delete.c → components/freertos/test/integration/tasks/test_freertos_task_delete.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 /*
  * Test backported deletion behavior by creating tasks of various affinities and
  * check if the task memory is freed immediately under the correct conditions.

+ 1 - 0
components/freertos/test/test_freertos_task_notify.c → components/freertos/test/integration/tasks/test_freertos_task_notify.c

@@ -3,6 +3,7 @@
  *
  * SPDX-License-Identifier: Apache-2.0
  */
+
 /*
  Test of FreeRTOS task notifications. This test creates a sender and receiver
  task under different core permutations. For each permutation, the sender task

+ 2 - 1
components/freertos/test/test_freertos_task_utilities.c → components/freertos/test/integration/tasks/test_freertos_task_utilities.c

@@ -1,8 +1,9 @@
 /*
- * SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
+ * SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
  *
  * SPDX-License-Identifier: Apache-2.0
  */
+
 #include "freertos/FreeRTOS.h"
 #include "freertos/task.h"
 #include "freertos/queue.h"

+ 1 - 0
components/freertos/test/test_suspend_scheduler.c → components/freertos/test/integration/tasks/test_suspend_scheduler.c

@@ -3,6 +3,7 @@
  *
  * SPDX-License-Identifier: Apache-2.0
  */
+
 /* Tests for FreeRTOS scheduler suspend & resume all tasks */
 #include "sdkconfig.h"
 #include <stdio.h>

+ 6 - 0
components/freertos/test/test_task_priorities.c → components/freertos/test/integration/tasks/test_task_priorities.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 /*
   Unit tests for FreeRTOS task priority get/set
 */

+ 1 - 0
components/freertos/test/test_task_suspend_resume.c → components/freertos/test/integration/tasks/test_task_suspend_resume.c

@@ -3,6 +3,7 @@
  *
  * SPDX-License-Identifier: Apache-2.0
  */
+
 /* Tests for FreeRTOS task suspend & resume */
 #include <stdio.h>
 #include <string.h>

+ 0 - 0
components/freertos/test/test_tasks_snapshot.c → components/freertos/test/integration/tasks/test_tasks_snapshot.c


+ 6 - 0
components/freertos/test/test_timers.c → components/freertos/test/integration/timers/test_timers.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 /* FreeRTOS timer tests
 */
 #include <stdio.h>

+ 6 - 0
components/freertos/test/test_freertos_backported_functions.c → components/freertos/test/miscellaneous/test_freertos_backported_functions.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 /*
  * Test features that are backported from version FreeRTOS 9.0.0.
  *

+ 6 - 0
components/freertos/test/test_freertos_mutex.c → components/freertos/test/miscellaneous/test_freertos_mutex.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 #include "freertos/FreeRTOS.h"
 #include "freertos/task.h"
 #include "freertos/semphr.h"

+ 6 - 0
components/freertos/test/test_freertos_trace_utilities.c → components/freertos/test/miscellaneous/test_freertos_trace_utilities.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 /*
  * Test FreeRTOS trace facility functions. These following functions are enabled
  * when configUSE_TRACE_FACILITY is defined 1 in FreeRTOS.

+ 6 - 0
components/freertos/test/test_panic.c → components/freertos/test/miscellaneous/test_panic.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 /*
  Test for multicore FreeRTOS. This test spins up threads, fiddles with queues etc.
 */

+ 1 - 0
components/freertos/test/test_preemption.c → components/freertos/test/miscellaneous/test_preemption.c

@@ -3,6 +3,7 @@
  *
  * SPDX-License-Identifier: Apache-2.0
  */
+
 /*
  Unit tests for FreeRTOS preemption
 */

+ 6 - 0
components/freertos/test/test_freertos_scheduling_time.c → components/freertos/test/performance/test_freertos_scheduling_time.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 #include <esp_types.h>
 #include <stdio.h>
 #include "freertos/FreeRTOS.h"

+ 6 - 0
components/freertos/test/test_isr_latency.c → components/freertos/test/performance/test_isr_latency.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 #include <esp_types.h>
 #include <stdio.h>
 #include "sdkconfig.h"

+ 6 - 0
components/freertos/test/test_context_save_clobber.S → components/freertos/test/port/test_context_save_clobber.S

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 /* Helper function for the test case in test_context_save_clobber.c */
 
 #if defined(__XTENSA__)

+ 6 - 0
components/freertos/test/test_context_save_clobber.c → components/freertos/test/port/test_context_save_clobber.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 #include "sdkconfig.h"
 #include "unity.h"
 #include "esp_intr_alloc.h"

+ 6 - 0
components/freertos/test/test_float_in_isr.c → components/freertos/test/port/test_float_in_isr.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 #include <esp_types.h>
 #include <stdio.h>
 

+ 0 - 0
components/freertos/test/test_freertos_hooks.c → components/freertos/test/port/test_freertos_hooks.c


+ 6 - 0
components/freertos/test/test_freertos_isinisrcontext.c → components/freertos/test/port/test_freertos_isinisrcontext.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 /*
  See if xPortInIsrContext works
 */

+ 6 - 0
components/freertos/test/test_newlib_reent.c → components/freertos/test/port/test_newlib_reent.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 /*
  Test for multicore FreeRTOS. This test spins up threads, fiddles with queues etc.
 */

+ 1 - 0
components/freertos/test/test_spinlocks.c → components/freertos/test/port/test_spinlocks.c

@@ -3,6 +3,7 @@
  *
  * SPDX-License-Identifier: Apache-2.0
  */
+
 /*
  Combined unit tests & benchmarking for spinlock "portMUX" functionality
 */

+ 6 - 0
components/freertos/test/test_thread_local.c → components/freertos/test/port/test_thread_local.c

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 /*
  Test for thread local storage support.
 */

+ 0 - 0
components/freertos/test/test_xtensa_loadstore_handler.c → components/freertos/test/port/test_xtensa_loadstore_handler.c