1Import('rtconfig')
2from building import *
3
4cwd     = GetCurrentDir()
5src     = []
6CPPPATH = [cwd]
7
8if GetDepend(['UTEST_SMP_SPINLOCK_TC']):
9    src += ['smp_spinlock_tc.c']
10
11if GetDepend(['UTEST_SMP_ASSIGNED_IDLE_CORE_TC']):
12    src += ['smp_assigned_idle_cores_tc.c']
13
14if GetDepend(['UTEST_SMP_INTERRUPT_PRI_TC']):
15    src += ['smp_interrupt_pri_tc.c']
16
17if GetDepend(['UTEST_SMP_THREAD_PREEMPTION_TC']):
18    src += ['smp_thread_preemption_tc.c']
19
20if GetDepend(['UTEST_SMP_AFFFINITY_TC']):
21    src += ['smp_bind_affinity_tc.c']
22    src += ['smp_affinity_pri1_tc.c']
23    src += ['smp_affinity_pri2_tc.c']
24
25group = DefineGroup('utestcases', src, depend = ['RT_USING_UTESTCASES'], CPPPATH = CPPPATH)
26
27Return('group')
28