mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-16 14:45:04 +08:00
ece19e961a
ToolsCI / Tools (push) Has been cancelled
AutoTestCI / components/cpp11 (push) Has been cancelled
AutoTestCI / kernel/atomic (push) Has been cancelled
AutoTestCI / kernel/atomic/riscv64 (push) Has been cancelled
AutoTestCI / kernel/atomic_c11 (push) Has been cancelled
AutoTestCI / kernel/atomic_c11/riscv64 (push) Has been cancelled
AutoTestCI / kernel/device (push) Has been cancelled
AutoTestCI / kernel/ipc (push) Has been cancelled
AutoTestCI / kernel/irq (push) Has been cancelled
AutoTestCI / kernel/mem (push) Has been cancelled
AutoTestCI / kernel/mem/riscv64 (push) Has been cancelled
AutoTestCI / kernel/thread (push) Has been cancelled
AutoTestCI / kernel/timer (push) Has been cancelled
AutoTestCI / rtsmart/aarch64 (push) Has been cancelled
AutoTestCI / rtsmart/arm (push) Has been cancelled
AutoTestCI / rtsmart/riscv64 (push) Has been cancelled
AutoTestCI / components/utest (push) Has been cancelled
RT-Thread BSP Static Build Check / 🔍 Summary of Git Diff Changes (push) Has been cancelled
doc_doxygen / doxygen_doc generate (push) Has been cancelled
pkgs_test / change (push) Has been cancelled
utest_auto_run / AARCH64-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / A9-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / XUANTIE-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64 :default.cfg (push) Has been cancelled
utest_auto_run / A9 :default.cfg (push) Has been cancelled
utest_auto_run / A9-smp :default.cfg (push) Has been cancelled
utest_auto_run / RISCV :default.cfg (push) Has been cancelled
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (push) Has been cancelled
RT-Thread BSP Static Build Check / collect-artifacts (push) Has been cancelled
doc_doxygen / deploy (push) Has been cancelled
74 lines
1.7 KiB
Python
74 lines
1.7 KiB
Python
Import('rtconfig')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = []
|
|
CPPPATH = [cwd]
|
|
|
|
if GetDepend(['UTEST_OBJECT_TC']):
|
|
src += ['object_tc.c']
|
|
|
|
if GetDepend(['UTEST_MEMHEAP_TC']):
|
|
src += ['memheap_tc.c']
|
|
|
|
if GetDepend(['UTEST_SMALL_MEM_TC']):
|
|
src += ['mem_tc.c']
|
|
|
|
if GetDepend(['UTEST_SLAB_TC']):
|
|
src += ['slab_tc.c']
|
|
|
|
if GetDepend(['UTEST_IRQ_TC']):
|
|
src += ['irq_tc.c']
|
|
|
|
if GetDepend(['UTEST_SEMAPHORE_TC']):
|
|
src += ['semaphore_tc.c']
|
|
|
|
if GetDepend(['UTEST_EVENT_TC']):
|
|
src += ['event_tc.c']
|
|
|
|
if GetDepend(['UTEST_TIMER_TC']):
|
|
src += ['timer_tc.c']
|
|
|
|
if GetDepend(['UTEST_MESSAGEQUEUE_TC']):
|
|
src += ['messagequeue_tc.c']
|
|
|
|
if GetDepend(['UTEST_SIGNAL_TC']):
|
|
src += ['signal_tc.c']
|
|
|
|
if GetDepend(['UTEST_MUTEX_TC']):
|
|
src += ['mutex_tc.c', 'mutex_pi_tc.c']
|
|
|
|
if GetDepend(['UTEST_MAILBOX_TC']):
|
|
src += ['mailbox_tc.c']
|
|
|
|
if GetDepend(['UTEST_THREAD_TC']):
|
|
src += ['thread_tc.c']
|
|
|
|
if GetDepend(['UTEST_DEVICE_TC']):
|
|
src += ['device_tc.c']
|
|
|
|
if GetDepend(['UTEST_ATOMIC_TC']):
|
|
src += ['atomic_tc.c']
|
|
|
|
if GetDepend(['UTEST_HOOKLIST_TC']):
|
|
src += ['hooklist_tc.c']
|
|
|
|
if GetDepend(['UTEST_MTSAFE_KPRINT_TC']):
|
|
src += ['mtsafe_kprint_tc.c']
|
|
|
|
# Stressful testcase for scheduler (MP/UP)
|
|
if GetDepend(['UTEST_SCHEDULER_TC']):
|
|
src += ['sched_timed_sem_tc.c']
|
|
src += ['sched_timed_mtx_tc.c']
|
|
src += ['sched_mtx_tc.c']
|
|
src += ['sched_sem_tc.c', 'sched_thread_tc.c']
|
|
|
|
group = DefineGroup('utestcases', src, depend = ['RT_USING_UTESTCASES'], CPPPATH = CPPPATH)
|
|
|
|
list = os.listdir(cwd)
|
|
for item in list:
|
|
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
|
group = group + SConscript(os.path.join(item, 'SConscript'))
|
|
|
|
Return('group')
|