Skip to content

Commit 4d042f3

Browse files
committed
Test covered profile in MCU
1 parent 56522c5 commit 4d042f3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_mcu.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def test_mcu_spi_stm32f411(self):
158158

159159
def test_mcu_led_rust_stm32f411(self):
160160
ql = Qiling(["../examples/rootfs/mcu/stm32f411/led-rust.hex"],
161-
archtype="cortex_m", env=stm32f411_env, verbose=QL_VERBOSE.DEBUG)
161+
archtype="cortex_m", env=gd32vf103_env, profile="profiles/stm32f411.yml", verbose=QL_VERBOSE.DEBUG)
162162

163163
count = 0
164164
def counter():
@@ -173,10 +173,12 @@ def counter():
173173

174174
del ql
175175

176-
def test_mcu_uart_rust_stm32f411(self):
176+
def test_mcu_uart_rust_stm32f411(self):
177177
ql = Qiling(["../examples/rootfs/mcu/stm32f411/uart-rust.hex"],
178178
archtype="cortex_m", env=stm32f411_env, verbose=QL_VERBOSE.DEBUG)
179179

180+
## cover env by profiles
181+
180182
ql.hw.create('rcc')
181183
ql.hw.create('gpioa')
182184
ql.hw.create('usart2')

0 commit comments

Comments
 (0)