On 29/12/23 17:47, Inès Varhol wrote:
Acked-by: Alistair Francis <alistair.fran...@wdc.com>
Signed-off-by: Arnaud Minier <arnaud.min...@telecom-paris.fr>
Signed-off-by: Inès Varhol <ines.var...@telecom-paris.fr>
---
tests/qtest/meson.build | 3 +-
tests/qtest/stm32l4x5_syscfg-test.c | 408 ++++++++++++++++++++++++++++
2 files changed, 410 insertions(+), 1 deletion(-)
create mode 100644 tests/qtest/stm32l4x5_syscfg-test.c
Sitting on this commit, the test fails (because the tested
device is added in the following patch):
▶ 19/36 /arm/stm32l4x5/syscfg/test_reset
FAIL
▶ 19/36 /arm/stm32l4x5/syscfg/test_reserved_bits
FAIL
▶ 19/36 /arm/stm32l4x5/syscfg/test_set_and_clear
FAIL
▶ 19/36 /arm/stm32l4x5/syscfg/test_set_only_bits
FAIL
▶ 19/36 /arm/stm32l4x5/syscfg/test_interrupt
FAIL
▶ 19/36 /arm/stm32l4x5/syscfg/test_irq_pin_multiplexer
FAIL
▶ 19/36 /arm/stm32l4x5/syscfg/test_irq_gpio_multiplexer
FAIL
Listing only the last 100 lines from a long log.
**
ERROR:../../tests/qtest/stm32l4x5_syscfg-test.c:140:test_set_and_clear:
code should not be reached
**
ERROR:../../tests/qtest/stm32l4x5_syscfg-test.c:148:test_set_and_clear:
assertion failed (cfgr1 == 0xFCFF0101): (0 == 4244570369)
**
ERROR:../../tests/qtest/stm32l4x5_syscfg-test.c:148:test_set_and_clear:
code should not be reached
**
ERROR:../../tests/qtest/stm32l4x5_syscfg-test.c:151:test_set_and_clear:
assertion failed (cfgr1 == 0x00000001): (0 == 1)
**
ERROR:../../tests/qtest/stm32l4x5_syscfg-test.c:151:test_set_and_clear:
code should not be reached
**
ERROR:../../tests/qtest/stm32l4x5_syscfg-test.c:155:test_set_and_clear:
assertion failed (exticr1 == 0x0000FFFF): (0 == 65535)
**
...
To avoid breaking automatic bisections, first add the device, then the
test (invert patches 2 <-> 3).
Regards,
Phil.