[utest][perf] Fix clock time dependency and test build guard

This commit is contained in:
CYFS authored and Rbb666 committed 2026-10-11 15:59:15 +08:00
1 parent ba0f47edb3
commit 33b1dd58ba
2 files changed
+8 -1

No files matched your search

+5
View File
@@ -1,6 +1,11 @@
config RT_UTEST_SYS_PERF
bool "Performance Test"
default n
select RT_USING_CLOCK_TIME
help
Enable kernel performance tests using a clock timer device.
Enable a hardware timer driver in the BSP and set
RT_UTEST_CLOCK_TIMER_DEV_NAME to its registered device name.
config RT_UTEST_SYS_PERF_TC_COUNT
int "PerfTest: Number of cycles"
+3 -1
View File
@@ -5,6 +5,8 @@ cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
group = DefineGroup('utestcases', src, depend = ['RT_UTEST_SYS_PERF'], CPPPATH = CPPPATH)
group = DefineGroup('utestcases', src,
depend = ['RT_USING_UTESTCASES', 'RT_UTEST_SYS_PERF'],
CPPPATH = CPPPATH)
Return('group')