summaryrefslogtreecommitdiff
path: root/components/mm/utest/SConscript
diff options
context:
space:
mode:
authorCYFS <[email protected]>2026-06-11 14:40:29 +0800
committerRbb666 <[email protected]>2026-06-12 14:22:53 +0800
commitf559dceeb55d357684529fbfc3a1241062ee5a17 (patch)
treec1cd4a64b3da4efec9d651cbf725e94b3c96f471 /components/mm/utest/SConscript
parentbb5c90489a3fa6982fbf67444ddde5bff103fc81 (diff)
utest: move mm testcases to components/mm
Signed-off-by: CYFS <[email protected]>
Diffstat (limited to 'components/mm/utest/SConscript')
-rw-r--r--components/mm/utest/SConscript25
1 files changed, 25 insertions, 0 deletions
diff --git a/components/mm/utest/SConscript b/components/mm/utest/SConscript
new file mode 100644
index 0000000000..edef3914f1
--- /dev/null
+++ b/components/mm/utest/SConscript
@@ -0,0 +1,25 @@
+Import('rtconfig')
+from building import *
+
+cwd = GetCurrentDir()
+src = []
+CPPPATH = [cwd]
+
+if GetDepend(['RT_UTEST_MM_API', 'RT_USING_SMART']):
+ # deprecated test, will be rewrited in the future
+ # src += ['mm_api_tc.c', 'mm_libcpu_tc.c']
+ src += ['rt_ioremap.c']
+ src += ['aspace_unmap_range_invalid_param.c', 'aspace_unmap_range_shrink.c']
+ src += ['aspace_unmap_range_split.c', 'aspace_map_expand.c']
+ src += ['lwp_mmap_expand.c', 'lwp_mmap_map_fixed.c', 'lwp_mmap_fix_private.c']
+ src += ['lwp_mmap_fd.c', 'lwp_mmap_fd_map_fixed_merge.c', 'lwp_mmap_fd_map_fixed_split.c']
+
+if GetDepend(['RT_UTEST_MM_API', 'RT_USING_MEMBLOCK']):
+ src += ['mm_memblock_tc.c']
+
+if GetDepend(['RT_UTEST_MM_LWP', 'RT_USING_SMART']):
+ src += ['mm_lwp_tc.c']
+
+group = DefineGroup('utestcases', src, depend = ['RT_USING_UTESTCASES'], CPPPATH = CPPPATH)
+
+Return('group')