summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCYFS <[email protected]>2026-09-21 10:33:23 +0800
committerRbb666 <[email protected]>2026-10-11 15:59:15 +0800
commit33b1dd58bafbd850e982191b5f138cf8d7578e61 (patch)
tree1f10f0e824e5733e449a8f17ee547844c8541d0c /src
parentba0f47edb3e09bccd73503fb2fbc6625007f941e (diff)
[utest][perf] Fix clock time dependency and test build guard
Diffstat (limited to 'src')
-rw-r--r--src/utest/perf/Kconfig5
-rw-r--r--src/utest/perf/SConscript4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/utest/perf/Kconfig b/src/utest/perf/Kconfig
index 9425c7b456..1569efcd11 100644
--- a/src/utest/perf/Kconfig
+++ b/src/utest/perf/Kconfig
@@ -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"
diff --git a/src/utest/perf/SConscript b/src/utest/perf/SConscript
index 22b74b9b5d..6629adeacf 100644
--- a/src/utest/perf/SConscript
+++ b/src/utest/perf/SConscript
@@ -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')