mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 04:24:33 +00:00
* feat:[sal][utest] added test cases for the sal api * improve[net][utestcase]: standardize script construction * ci[auto utest run]: standardize naming and add sal testcases * add sal utest auto run configure and standard Information
24 lines
563 B
Python
24 lines
563 B
Python
Import('rtconfig')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = []
|
|
CPPPATH = [cwd]
|
|
|
|
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']
|
|
|
|
if GetDepend('RT_UTEST_TC_USING_SAL'):
|
|
# Add sal test source if enabled
|
|
src += ['tc_sal_socket.c']
|
|
|
|
# Define the test group with proper dependencies
|
|
group = DefineGroup('utestcases', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|