Skip to content

Commit e5f841c

Browse files
nashifkartben
authored andcommitted
tests: kernel/arch: various doxygen fixes
Group test using doxygen and other doxygen fixups. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent 29b1131 commit e5f841c

File tree

12 files changed

+57
-30
lines changed

12 files changed

+57
-30
lines changed

tests/arch/arm/arm_custom_interrupt/src/arm_custom_interrupt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void arm_isr_handler(const void *args)
120120
* @{
121121
*/
122122

123-
ZTEST(arm_custom_interrupt, test_arm_interrupt)
123+
ZTEST(arm_custom_interrupt, test_arm_custom_interrupt)
124124
{
125125
zassert_true(custom_init_called, "Custom IRQ init not called\n");
126126

tests/arch/arm/arm_interrupt/src/arm_interrupt.c

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ void set_regs_with_known_pattern(void *p1, void *p2, void *p3)
142142
"udf #90\n");
143143
}
144144

145+
/**
146+
* @brief Test to verify code fault handling in ISR execution context
147+
* @ingroup kernel_fatal_tests
148+
*/
145149
ZTEST(arm_interrupt, test_arm_esf_collection)
146150
{
147151
int test_validation_rv;
@@ -222,6 +226,10 @@ void arm_isr_handler(const void *args)
222226
}
223227
}
224228

229+
/**
230+
* @brief Test ARM Interrupt handling
231+
* @ingroup kernel_arch_interrupt_tests
232+
*/
225233
ZTEST(arm_interrupt, test_arm_interrupt)
226234
{
227235
/* Determine an NVIC IRQ line that is not currently in use. */
@@ -390,6 +398,10 @@ static inline void z_vrfy_test_arm_user_interrupt_syscall(void)
390398
}
391399
#include <zephyr/syscalls/test_arm_user_interrupt_syscall_mrsh.c>
392400

401+
/**
402+
* @brief Test ARM Interrupt handling in user mode
403+
* @ingroup kernel_arch_interrupt_tests
404+
*/
393405
ZTEST_USER(arm_interrupt, test_arm_user_interrupt)
394406
{
395407
/* Test thread executing in user mode */
@@ -434,6 +446,11 @@ ZTEST_USER(arm_interrupt, test_arm_user_interrupt)
434446
#pragma GCC push_options
435447
#pragma GCC optimize("O0")
436448
/* Avoid compiler optimizing null pointer de-referencing. */
449+
450+
/**
451+
* @brief Test ARM Null Pointer Exception handling
452+
* @ingroup kernel_arch_interrupt_tests
453+
*/
437454
ZTEST(arm_interrupt, test_arm_null_pointer_exception)
438455
{
439456
Z_TEST_SKIP_IFNDEF(CONFIG_CORTEX_M_NULL_POINTER_EXCEPTION);
@@ -454,7 +471,3 @@ ZTEST(arm_interrupt, test_arm_null_pointer_exception)
454471
zassert_equal(reason, -1, "expected_reason has not been reset (%d)\n", reason);
455472
}
456473
#pragma GCC pop_options
457-
458-
/**
459-
* @}
460-
*/

tests/arch/arm/arm_irq_advanced_features/src/arm_dynamic_direct_interrupts.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ void arm_direct_isr_handler_1(const void *args)
2828
test_flag = 2;
2929
}
3030

31+
/**
32+
* @brief Test the ARM Dynamic Direct Interrupts functionality.
33+
* @ingroup kernel_arch_interrupt_tests
34+
*/
3135
ZTEST(arm_irq_advanced_features, test_arm_dynamic_direct_interrupts)
3236
{
3337
int post_flag = 0;
@@ -81,6 +85,3 @@ ZTEST(arm_irq_advanced_features, test_arm_dynamic_direct_interrupts)
8185
post_flag = test_flag;
8286
zassert_true(post_flag == 2, "Test flag not set by ISR1\n");
8387
}
84-
/**
85-
* @}
86-
*/

tests/arch/arm/arm_irq_advanced_features/src/arm_irq_target_state.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
extern irq_target_state_t irq_target_state_set(unsigned int irq, irq_target_state_t target_state);
1414
extern int irq_target_state_is_secure(unsigned int irq);
1515

16+
/**
17+
* @brief Test the ARM IRQ target state functionality.
18+
* @ingroup kernel_arch_interrupt_tests
19+
*/
1620
ZTEST(arm_irq_advanced_features, test_arm_irq_target_state)
1721
{
1822
/* Determine an NVIC IRQ line that is implemented
@@ -82,6 +86,3 @@ ZTEST(arm_irq_advanced_features, test_arm_irq_target_state)
8286
TC_PRINT("Skipped (TrustZone-M-enabled Cortex-M Mainline only)\n");
8387
}
8488
#endif /* CONFIG_ZERO_LATENCY_IRQS */
85-
/**
86-
* @}
87-
*/

tests/arch/arm/arm_irq_advanced_features/src/arm_zero_latency_irqs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ void arm_zero_latency_isr_handler(const void *args)
1818
test_flag = 1;
1919
}
2020

21+
/**
22+
* @brief Test ARM Zero latency Interrupt functionality.
23+
* @ingroup kernel_arch_interrupt_tests
24+
*/
2125
ZTEST(arm_irq_advanced_features, test_arm_zero_latency_irqs)
2226
{
2327

@@ -101,7 +105,3 @@ ZTEST(arm_irq_advanced_features, test_arm_zero_latency_irqs)
101105

102106
irq_unlock(key);
103107
}
104-
105-
/**
106-
* @}
107-
*/

tests/arch/arm/arm_sw_vector_relay/src/arm_sw_vector_relay.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ extern uint32_t _vector_table;
1515
extern uint32_t __vector_relay_handler;
1616
extern uint32_t _vector_table_pointer;
1717

18+
19+
/**
20+
* @brief Test the ARM Software Vector Relay functionality.
21+
*
22+
* This test verifies the correctness of the ARM software vector relay mechanism.
23+
* @ingroup kernel_arch_interrupt_tests
24+
*/
1825
ZTEST(arm_sw_vector_relay, test_arm_sw_vector_relay)
1926
{
2027
uint32_t vector_relay_table_addr = (uint32_t)&__vector_relay_table;
@@ -61,6 +68,3 @@ ZTEST(arm_sw_vector_relay, test_arm_sw_vector_relay)
6168
_vector_table_pointer, _vector_start);
6269
#endif
6370
}
64-
/**
65-
* @}
66-
*/

tests/arch/arm/arm_thread_swap/src/arm_syscalls.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ static void user_thread_entry(void *p1, void *p2, void *p3)
143143
barrier_isync_fence_full();
144144
#endif
145145
}
146-
146+
/**
147+
* @brief Test ARM thread swap mechanism
148+
* @ingroup kernel_arch_sched_tests
149+
*/
147150
ZTEST(arm_thread_swap, test_arm_syscalls)
148151
{
149152
int i = 0;
@@ -288,6 +291,3 @@ ZTEST(arm_thread_swap, test_arm_syscalls)
288291
}
289292

290293
#endif /* CONFIG_USERSPACE */
291-
/**
292-
* @}
293-
*/

tests/arch/arm/arm_thread_swap/src/arm_thread_arch.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ static int __noinline arch_swap_wrapper(void)
370370
}
371371
#endif
372372

373+
/**
374+
* @brief Test the ARM thread swap mechanism
375+
* @ingroup kernel_arch_sched_tests
376+
*/
373377
ZTEST(arm_thread_swap, test_arm_thread_swap)
374378
{
375379
int test_flag;
@@ -662,6 +666,3 @@ ZTEST(arm_thread_swap, test_arm_thread_swap)
662666
#endif
663667
#endif /* CONFIG_FPU && CONFIG_FPU_SHARING */
664668
}
665-
/**
666-
* @}
667-
*/

tests/arch/common/ramfunc/src/ramfunc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,3 @@ ZTEST(ramfunc, test_ramfunc)
5353
zassert_true(post_flag == 1,
5454
"ram_function() execution failed.");
5555
}
56-
/**
57-
* @}
58-
*/

tests/kernel/common/src/irq_offload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ ZTEST(common_1cpu, test_nested_irq_offload)
140140
k_thread_abort(&offload_thread);
141141
}
142142
/**
143-
*
143+
* @}
144144
*/
145145
extern void *common_setup(void);
146146
ZTEST_SUITE(irq_offload, NULL, common_setup, NULL, NULL, NULL);

0 commit comments

Comments
 (0)