1from building import * 2 3src = [] 4 5if GetDepend('RT_UTEST_USING_ALL_CASES') or GetDepend('BSP_UTEST_DRIVERS'): 6 src += ['test_gpio.c'] 7 src += ['test_gpio_irq.c'] 8 9 if GetDepend('BSP_USING_ADC'): 10 src += ['test_adc.c'] 11 12 if GetDepend('BSP_USING_TIMERS'): 13 src += ['test_timer.c'] 14 15 if GetDepend('BSP_USING_WDT'): 16 src += ['test_wdt.c'] 17 18 if GetDepend('BSP_USING_PWM'): 19 src += ['test_pwm.c'] 20 21 if GetDepend('BSP_USING_PDMA'): 22 src += ['test_pdma.c'] 23 24 if GetDepend('BSP_USING_TS'): 25 src += ['test_ts.c'] 26 27group = DefineGroup('utestcases', src, depend = ['']) 28 29Return('group')