SConscript 782 B

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