2023-03-30 08:25:15 +08:00
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = []
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
2023-08-16 15:38:59 +08:00
|
|
|
if GetDepend(['UTEST_MM_API_TC', 'RT_USING_SMART']):
|
2023-10-25 14:59:48 +08:00
|
|
|
# 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(['UTEST_MM_API_TC', 'RT_USING_MEMBLOCK']):
|
2023-10-14 14:10:57 +08:00
|
|
|
src += ['mm_memblock_tc.c']
|
2023-03-30 08:25:15 +08:00
|
|
|
|
2023-08-16 15:38:59 +08:00
|
|
|
if GetDepend(['UTEST_MM_LWP_TC', 'RT_USING_SMART']):
|
2023-03-30 08:25:15 +08:00
|
|
|
src += ['mm_lwp_tc.c']
|
|
|
|
|
|
|
|
group = DefineGroup('utestcases', src, depend = ['RT_USING_UTESTCASES'], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|