mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-07 09:52:08 +08:00
22 lines
621 B
Python
22 lines
621 B
Python
Import('rtconfig')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = []
|
|
CPPPATH = [cwd]
|
|
|
|
if GetDepend('RT_UTEST_USING_ALL_CASES') or GetDepend('RT_UTEST_TC_USING_LWIP') or GetDepend('RT_UTEST_TC_USING_NETDEV'):
|
|
|
|
if GetDepend('RT_UTEST_TC_USING_LWIP'):
|
|
# Add lwIP test source if enabled
|
|
src += ['tc_lwip.c']
|
|
|
|
if GetDepend('RT_UTEST_TC_USING_NETDEV'):
|
|
# Add netdev test source if enabled
|
|
src += ['tc_netdev.c']
|
|
|
|
# Define the test group with proper dependencies
|
|
group = DefineGroup('utestcases', src, depend = ['RT_USING_UTESTCASES'], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|