summaryrefslogtreecommitdiff
path: root/components/net/utest/SConscript
blob: 010ccb4e5f41285ba5834680404c05f6be2d222a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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')