summaryrefslogtreecommitdiff
path: root/bsp/hc32/tests/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/hc32/tests/SConscript')
-rw-r--r--bsp/hc32/tests/SConscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/bsp/hc32/tests/SConscript b/bsp/hc32/tests/SConscript
index 3733761301..74d279fda2 100644
--- a/bsp/hc32/tests/SConscript
+++ b/bsp/hc32/tests/SConscript
@@ -15,7 +15,9 @@ if GetDepend(['RT_USING_SERIAL']):
src += ['test_uart_v1.c']
if GetDepend(['BSP_USING_SPI']):
- src += ['test_spi.c']
+ # don't add test file when use RT_USB_DEVICE_MSTORAGE
+ if not (GetDepend(['BSP_USING_USBD']) and GetDepend(['RT_USB_DEVICE_MSTORAGE'])):
+ src += ['test_spi.c']
if GetDepend(['BSP_USING_QSPI']):
src += ['test_qspi.c']
@@ -66,6 +68,7 @@ if GetDepend(['BSP_USING_INPUT_CAPTURE']):
if GetDepend(['BSP_USING_PM']):
src += ['test_pm.c']
+ src += ['test_wktm.c']
if GetDepend('BSP_USING_HWCRYPTO'):
src += ['test_crypto.c']