mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-17 07:05:31 +08:00
[utest][perf] Fix clock time dependency and test build guard
This commit is contained in:
1 parent
ba0f47edb3
commit
33b1dd58ba
2 files changed
+8
-1
No files matched your search
@@ -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"
|
||||
|
||||
@@ -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')
|
||||
Reference in new issue
Block a user